C++ Logo

std-discussion

Advanced search

Re: User defined literal

From: Brian Bi <bbi5291_at_[hidden]>
Date: Wed, 7 Jul 2021 17:10:16 -0400
[basic.pre]/9.5

> Two names are the same if ... they are literal-operator-ids (12.8) formed
with the same literal suffix identifier.

On Wed, Jul 7, 2021 at 5:02 PM Vladimir Grigoriev via Std-Discussion <
std-discussion_at_[hidden]> wrote:

> Where is there said in the C++ 20 Standard whether for example these two
> declarations declare the same operator and may be used simultaneously?
>
> int operator "" _o( const char *s );
> int operator ""_o( const char *s );
>
> With best regards,
> Vlad from Moscow
>
>
>
> You can meet me at http://cpp.forum24.ru/ or www.stackoverflow.com or
> http://ru.stackoverflow.com
> --
> Std-Discussion mailing list
> Std-Discussion_at_[hidden]
> https://lists.isocpp.org/mailman/listinfo.cgi/std-discussion
>


-- 
*Brian Bi*

Received on 2021-07-07 16:10:31