Path: csiph.com!eternal-september.org!feeder.eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: Tim Rentsch
Newsgroups: comp.lang.c++
Subject: Re: Conversion operator to pointer-to-array
Date: Wed, 18 Sep 2019 08:58:30 -0700
Organization: A noiseless patient Spider
Lines: 11
Message-ID: <86y2yl38bd.fsf@linuxsc.com>
References:
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Injection-Info: reader02.eternal-september.org; posting-host="d7421874ff1696044f351dbc5e408957"; logging-data="28854"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19n1dsU+Xjr6GmR4WEDjk9u2kIxeDnvYqc="
User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.4 (gnu/linux)
Cancel-Lock: sha1:gq1DSm179+dtk5LYxP4xAvGzWI4= sha1:G/I2feA9fDW+0RE/MYyi0bwIdhM=
Xref: csiph.com comp.lang.c++:68508
Juha Nieminen 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.