Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.c++ > #68508
| From | Tim Rentsch <tr.17687@z991.linuxsc.com> |
|---|---|
| Newsgroups | comp.lang.c++ |
| Subject | Re: Conversion operator to pointer-to-array |
| Date | 2019-09-18 08:58 -0700 |
| Organization | A noiseless patient Spider |
| Message-ID | <86y2yl38bd.fsf@linuxsc.com> (permalink) |
| References | <qlsmr8$235h$2@adenine.netfront.net> |
Juha Nieminen <nospam@thanks.invalid> writes:
> Is there a way to express this without using the type alias?
>
> struct S
> {
> using DArray4 = double(*)[4];
> operator DArray4() { return nullptr; }
> };
There is.
Back to comp.lang.c++ | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Conversion operator to pointer-to-array Juha Nieminen <nospam@thanks.invalid> - 2019-09-18 07:37 +0000
Re: Conversion operator to pointer-to-array Tim Rentsch <tr.17687@z991.linuxsc.com> - 2019-09-18 08:58 -0700
Re: Conversion operator to pointer-to-array Öö Tiib <ootiib@hot.ee> - 2019-09-18 09:32 -0700
Re: Conversion operator to pointer-to-array Frederick Gotham <cauldwell.thomas@gmail.com> - 2019-09-26 00:12 -0700
Re: Conversion operator to pointer-to-array Juha Nieminen <nospam@thanks.invalid> - 2019-09-26 08:39 +0000
Re: Conversion operator to pointer-to-array Manfred <noname@add.invalid> - 2019-09-26 16:34 +0200
csiph-web