Open andry81 opened 5 years ago
I see that only operator""_s
is documented to support only narrow string literals. I wonder if that was omitted from the macro's documentation by mistake.
This closed issue https://github.com/boostorg/hana/issues/80 appears to suggest that only narrow string literals are supported across the board, which makes sense looking at the implementation.
Perhaps we should just add the note to the macro's documentation.
https://github.com/boostorg/hana/blob/1aa52a97269c1f57ca779e9deed03d8d49a8796d/include/boost/hana/string.hpp#L98
Is't that a risky way to calculate length like that
sizeof(S::get()) - 1
? What aboutBOOST_HANA_STRING(L"...")
, is that ok or may be potential a bug in the length? I know the string mostly thechar
oriented, but that macro can be used potentially with any string.