mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-17 19:25:53 +02:00
Dynamic::Struct construction from std::map
This commit is contained in:
@@ -74,6 +74,14 @@ public:
|
||||
{
|
||||
}
|
||||
|
||||
template <typename T>
|
||||
Struct(const std::map<K, T>& val)
|
||||
{
|
||||
std::map<K, T>::const_iterator it = val.begin();
|
||||
std::map<K, T>::const_iterator end = val.end();
|
||||
for (; it != end; ++it) _data.insert(ValueType(it->first, Var(it->second)));
|
||||
}
|
||||
|
||||
virtual ~Struct()
|
||||
/// Destroys the Struct.
|
||||
{
|
||||
|
Reference in New Issue
Block a user