template <typename T>
inserter struct
Helper class for suppressing move-construction in single-argument array constructors.
// desired result: [ [ 42 ] ] auto bad = toml::array{ toml::array{ 42 } } auto good = toml::array{ toml::inserter{ toml::array{ 42 } } } std::cout << "bad: " << bad << "\n"; std::cout << "good:" << good << "\n";
bad: [ 42 ] good: [ [ 42 ] ]