This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

User-define literals for std::complex.


Greetings,

The complex user-defined literals finally passed (n3779) with the resolution to DR1473 allowing the suffix id to touch the quotes (Can't find it but I put it in not too long ago).
(http://wiki.edg.com/twiki/pub/Wg21chicago2013/LibraryWorkingGroup/N3779-complex_literals.pdf)

Actually, I think allowing space between quotes and suffix ID was a mistake.

Also it looks like they are *removing* inline from the 'namespace literals' so that 'using std;' brings in the literals but that will be a later patch for all literals at once.

This has been bootstrapped and regtested on x86_64-linux.

As a general stylistic guide for the library I think I'll put
  operator""abc(...)
with no spaces.  Later.

OK?

Attachment: CL_cmplxliterals
Description: Text document

Attachment: patch_cmplxliterals_3
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]