Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
こんにちはブースト mpl ドキュメントで、mpl::string と次の例を発見しました。
typedef mpl::string<'hell','o wo','rld'> hello;
C または C++ では、文字' ?
それは正常で有効ですか?
はい、有効な C++ です。既存の C++ 標準から、セクション [lex.conn]:
複数のc-charを含む通常の文字リテラルは、複数文字リテラルです。複数文字リテラルには、型intと実装定義の値があります。
int