proximax-storage / cpp-xpx-chain-sdk

ProximaX Sirius-Chain C++ SDK
Apache License 2.0
2 stars 1 forks source link

Add feature check for string literal operator template support during cmake configure step #6

Closed pananton closed 5 years ago

pananton commented 5 years ago

Currently compile-time string literal for variadic struct's field name is implemented using macro. This limits maximum field name size to 50 symbols and also leads to long and cumbersome compiler errors. For GCC and Clang we have a better option which does not suffer mentioned drawbacks. Those compiler have extension allowing string literal operator templates. See N3599 proposal for more information. In this issue I propose following solution: