C++ Logo

std-discussion

Advanced search

Re: extremely long compile time with large number of string literals

From: Hans Åberg <haberg-1_at_[hidden]>
Date: Fri, 10 Jul 2020 00:23:36 +0200
> On 9 Jul 2020, at 23:51, Mandeep Sandhu via Std-Discussion <std-discussion_at_[hidden]> wrote:
>
> I added the space after reading this:
> https://gcc.gnu.org/gcc-4.7/porting_to.html (See: User-defined
> literals and whitespace)
>
> Anyway, without the space I get a different error:

They are called string literals, see this page, which also has an example:
  https://en.cppreference.com/w/cpp/string/basic_string/operator""s

Received on 2020-07-09 17:26:53