For static constexpr auto& kSomeStrLiteral = "hello world"; NS_LITERAL_CSTRING(kSomeStrLiteral) is not allowed.
However, we can have auto s1 = nsLiteralCString("hello world"); auto s2 = nsLiteralCString(kSomeStrLiteral); I wonder why didn't we define NS_LITERAL_CSTRING(s) as static_cast<const nsLiteralCString&>(nsLiteralCString(s)) ? _______________________________________________ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform