Topic: Draft Proposal of File String Literals
Author: Ronan Keryell <ronan.keryell@xilinx.com>
Date: Tue, 3 May 2016 17:00:48 +0000
Raw View
> -----Original Message-----
> From: Matthew Woehlke [mailto:mwoehlke.floss@gmail.com]
> Sent: 03 May 2016 16:49
> To: std-proposals@isocpp.org
> Subject: [std-proposals] Re: Draft Proposal of File String Ltiterals
>
> On 2016-04-28 17:39, Arthur O'Dwyer wrote:
> > Either way, your proposal should include an example along the lines of
> >
> > const char example[] =3D RF"foo(bar.h)foo";
> >
> > Does this mean "include bar.h", or "include foo(bar.h)foo" =E2=80=94 an=
d why?
>
> Certainly the latter; anything else is just overly complicating things to=
no
> benefit.
>
> If you really need a string like "foo" + contents of 'bar.h' + "foo", use
> concatenation:
>
> auto example[] =3D R"foo" RF"bar.h" R"foo";
[Ronan] I guess the point of Arthur was to generalize (or not) the raw stri=
ng literal syntax to be able to have
const char example[] =3D RF"foo(
foo bar
..h)foo";
For some filename creativity.
I love that. :-)
--
Ronan Keryell, Xilinx Research Labs / Ireland.
This email and any attachments are intended for the sole use of the named r=
ecipient(s) and contain(s) confidential information that may be proprietary=
, privileged or copyrighted under applicable law. If you are not the intend=
ed recipient, do not read, copy, or forward this email message or any attac=
hments. Delete this email message and any attachments immediately.
--=20
You received this message because you are subscribed to the Google Groups "=
ISO C++ Standard - Future Proposals" group.
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to std-proposals+unsubscribe@isocpp.org.
To post to this group, send email to std-proposals@isocpp.org.
To view this discussion on the web visit https://groups.google.com/a/isocpp=
..org/d/msgid/std-proposals/9FDB7A8A8AF7CC4DB0D7FA433D60672F583CEC64%40xir-p=
vexmbx01.xlnx.xilinx.com.
.