Feature #1782
Custom literal for upp string
Status: | Rejected | Start date: | 08/08/2017 | |
---|---|---|---|---|
Priority: | Normal | Due date: | ||
Assignee: | Miroslav Fidler | % Done: | 0% | |
Category: | Core | Spent time: | - | |
Target version: | Release 2017.2 - NTH |
Description
We should allow to create Strings using custom literals. Motivation:
auto myText = "Upp is the best"S; // The end prefix should have appropriate design - i believe we can not use s - it is reserved for std::string.
auto myWideText = "Wide text"WS;
History
#1 Updated by Miroslav Fidler over 7 years ago
- Status changed from New to Rejected
This is nonsense. Do not believe Sutter, he is wrong.
String foo = "Something";
auto foo = "Something"S;
Prefering second over first is insanity.