New utility classes, containers, C++14 compatibility, and fixes:

* Add std::equal_to <void> (since C++14)
* Add heterogeneous std::equal (since C++14)
* Add maybe_const
* Add empty_base_optimization
* Add is_constructible specialization for pair, tuple
* Add aged associative containers:
  - aged_set, aged_map, aged_multiset, aged_multimap
  - aged_unordered_set, aged_unordered_map,
  - aged_unordered_multiset, aged_unordered_multimap
* Fix auto keyword pass by reference
* Fix basic_seconds_clock warning and project file
This commit is contained in:
Vinnie Falco
2014-02-16 19:43:16 -08:00
parent c48b9244f2
commit 78e1995365
26 changed files with 7070 additions and 11 deletions

View File

@@ -336,9 +336,9 @@ PropertyStream::Source* PropertyStream::Source::find_one_deep (std::string const
if (found != nullptr)
return found;
SharedState::Access state (this->m_state);
for (auto iter : state->children)
for (auto& s : state->children)
{
found = iter.source().find_one_deep (name);
found = s.source().find_one_deep (name);
if (found != nullptr)
return found;
}
@@ -366,10 +366,10 @@ PropertyStream::Source* PropertyStream::Source::find_path (std::string path)
PropertyStream::Source* PropertyStream::Source::find_one (std::string const& name)
{
SharedState::Access state (this->m_state);
for (auto iter : state->children)
for (auto& s : state->children)
{
if (iter.source().m_name == name)
return &iter.source();
if (s.source().m_name == name)
return &s.source();
}
return nullptr;
}