Added unique_ptr detection to compiler_capabilities

- as well as use by C++11 conformant compilers now enabled for VS2013 on too (see #479)
- updated docs with this (and long long and override support)
This commit is contained in:
Phil Nash
2015-08-11 08:09:41 +01:00
parent 19520157fb
commit 40d0d2f656
3 changed files with 28 additions and 9 deletions

View File

@@ -503,12 +503,7 @@ namespace Clara {
}
};
// NOTE: std::auto_ptr is deprecated in c++11/c++0x
#if defined(__cplusplus) && __cplusplus > 199711L
typedef std::unique_ptr<Arg> ArgAutoPtr;
#else
typedef std::auto_ptr<Arg> ArgAutoPtr;
#endif
typedef CATCH_AUTO_PTR( Arg ) ArgAutoPtr;
friend void addOptName( Arg& arg, std::string const& optName )
{