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.
なぜこれがコンパイルされないのですか:リターンタイプとしてのa に問題がある可能性がありますか?string
string
constexpr std::string fnc() { return std::string("Yaba"); }
std::stringへのポインタを取る thatのコンストラクタはcharis notconstexprです。constexpr関数では、 である関数のみを使用できますconstexpr。
std::string
char
constexpr