2013-12-20から1日間の記事一覧
struct { static const char* foo = (char*)"foo"; } とても便利なのですが, class T{ private: U* u_; static const char* foo = (char*)"foo"; public: const string& get_u{return (u_==nullptr)?(foo):(*u_);} }; では使用することができません かとい…
struct { static const char* foo = (char*)"foo"; } とても便利なのですが, class T{ private: U* u_; static const char* foo = (char*)"foo"; public: const string& get_u{return (u_==nullptr)?(foo):(*u_);} }; では使用することができません かとい…