
21 Sep
2014
21 Sep
'14
7:54 p.m.
Is there a way to generate a list of value pairs using ref_list_of or cref_list_of. Maybe such a list could be assigned to a map. Something like: ref_list_of<size, std::pair<std::string, std::string>>("foo", "bar")("foo1", "bar1")...; or std::map<string, string> names = ref_list_of<size, std::pair<std::string, std::string>>("foo", "bar")("foo1", "bar1")...; -- Aaron Levy aaron.levy@yandex.com