2011-09-08 11:02:15 +04:00
|
|
|
#include "yaml-cpp/value/convert.h"
|
2011-09-08 00:49:01 +04:00
|
|
|
|
|
|
|
|
namespace YAML
|
|
|
|
|
{
|
2011-09-08 09:48:40 +04:00
|
|
|
|
2011-09-08 11:02:15 +04:00
|
|
|
//
|
|
|
|
|
// template<typename K, typename V>
|
|
|
|
|
// Value convert<std::map<K, V> >(const std::map<K, V>& rhs) {
|
|
|
|
|
// Value value(ValueType::Map);
|
|
|
|
|
// for(std::map<K, V>::const_iterator it=rhs.begin();it!=rhs.end();++it)
|
|
|
|
|
// value[it->first] = it->second;
|
|
|
|
|
// return value;
|
|
|
|
|
// }
|
2011-09-08 00:49:01 +04:00
|
|
|
}
|