Skip to content

Commit

Permalink
remove a c++11 #ifdef
Browse files Browse the repository at this point in the history
  • Loading branch information
gfgtdf committed Apr 1, 2016
1 parent b6282d8 commit bc20a3d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions src/config.cpp
Expand Up @@ -761,7 +761,6 @@ config& config::add_child(const std::string& key, const config& val)
return *v.back();
}

#ifdef HAVE_CXX11
config &config::add_child(const std::string &key, config &&val)
{
check_valid(val);
Expand All @@ -771,7 +770,6 @@ config &config::add_child(const std::string &key, config &&val)
ordered_children.push_back(child_pos(children.find(key), v.size() - 1));
return *v.back();
}
#endif

config &config::add_child_at(const std::string &key, const config &val, unsigned index)
{
Expand Down
2 changes: 0 additions & 2 deletions src/config.hpp
Expand Up @@ -488,9 +488,7 @@ class config
config& add_child(const std::string& key, const config& val);
config& add_child_at(const std::string &key, const config &val, unsigned index);

#ifdef HAVE_CXX11
config &add_child(const std::string &key, config &&val);
#endif

/**
* Returns a reference to the attribute with the given @a key.
Expand Down

0 comments on commit bc20a3d

Please sign in to comment.