STD_make_unique_NOT_SUPPORTED "Add support for make_unique<>()."

This commit is contained in:
qPCR4vir
2015-12-14 01:44:22 +01:00
parent 22ddc02184
commit d5721fbe30
4 changed files with 56 additions and 3 deletions

View File

@@ -58,12 +58,12 @@ namespace nana
cell::cell(nana::string text, const format& fmt)
: text(std::move(text)),
custom_format(new format{ fmt }) //make_unique
custom_format(std::make_unique<format>( fmt )) // or custom_format(new format{ fmt })
{}
cell::cell(nana::string text, const ::nana::color& bgcolor, const ::nana::color& fgcolor)
: text(std::move(text)),
custom_format{ new format{ bgcolor, fgcolor } } //make_unique
custom_format{std::make_unique<format>( bgcolor, fgcolor ) } //custom_format{ new format{ bgcolor, fgcolor } }
{}
cell& cell::operator=(const cell& rhs)