ååã®è¨äºã§èª¬æããããã«ã auto p = std::make_shared<hoge>(); ã®ãããªããé¢æ°ï¼ãããã¯ã³ã³ã¹ãã©ã¯ã¿ï¼ã®æ»ãå¤ãå¤æ°ã«æç¸ãããã³ã¼ãã¯ã*1 one-phase construction ã§ã¯ããã¾ããã ããã¯ã¤ã¾ãã struct person : private boost::noncopyable // noncopyable ãªã¯ã©ã¹ { std::string name; int age; person( std::string const& name_, int age_ ) : name(name_), age(age_) {} person( std::string && name_, int age_ ) : name( std::move(name_) ), age(age_) {} }; auto p = person( "
{{#tags}}- {{label}}
{{/tags}}