Subject: Re: extremely long compile time with large number of string literals
From: Yongwei Wu (wuyongwei_at_[hidden])
Date: 2020-08-29 06:48:00
On Sun, 19 Jul 2020 at 00:44, Mandeep Sandhu via Std-Discussion <
> > Ideally a constexpr string object using constexpr operator new could do
> > but such a thing does not exist in C++ yet and definitely did not for
> C++11 or
> > C++14.
> > The best you can get until is to benefit from the Small String
> What is the size threshold at which SSO kicks in? Is it implementation
> defined? Is there a way to figure out if a string has been "SSO-ed" ?
> The largest string in my case is 18 (lowest is 4). Wonder if SSO will
> be applicable here.
If you only need something const(expr), is there any reason that you cannot
-- Yongwei Wu URL: http://wyw.dcweb.cn/
STD-DISCUSSION list run by firstname.lastname@example.org
Older Archives on Google Groups