libstdc++: Simplify preprocessor/namespace nesting in <bits/move.h>
There's no good reason to conditionally close and reopen namespace std within an #if block. Just include the <type_traits> header at the top instead. libstdc++-v3/ChangeLog: * include/bits/move.h: Simplify opening/closing namespace std.
This commit is contained in:
parent
a94dcac59e
commit
5c8b154c56
1 changed files with 2 additions and 9 deletions
|
@ -33,6 +33,8 @@
|
|||
#include <bits/c++config.h>
|
||||
#if __cplusplus < 201103L
|
||||
# include <bits/concept_check.h>
|
||||
#else
|
||||
# include <type_traits> // Brings in std::declval too.
|
||||
#endif
|
||||
|
||||
namespace std _GLIBCXX_VISIBILITY(default)
|
||||
|
@ -51,15 +53,6 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
|
|||
|
||||
#if __cplusplus >= 201103L
|
||||
|
||||
_GLIBCXX_END_NAMESPACE_VERSION
|
||||
} // namespace
|
||||
|
||||
#include <type_traits> // Brings in std::declval too.
|
||||
|
||||
namespace std _GLIBCXX_VISIBILITY(default)
|
||||
{
|
||||
_GLIBCXX_BEGIN_NAMESPACE_VERSION
|
||||
|
||||
/**
|
||||
* @addtogroup utilities
|
||||
* @{
|
||||
|
|
Loading…
Add table
Reference in a new issue