Fixed a few warnings in headers (meaning they were reported once for each include)

Fixed an identification of CXX compiler in cmake so that 'AppleClang' is recognized
This commit is contained in:
Lukas Matena 2019-07-23 11:22:54 +02:00
parent 506be9035b
commit 91a5d70a62
6 changed files with 12 additions and 12 deletions

View file

@ -172,7 +172,7 @@ extern std::string xml_escape(std::string text);
#if defined __GNUC__ && __GNUC__ < 5 && !defined __clang__
// Older GCCs don't have std::is_trivially_copyable
// cf. https://gcc.gnu.org/onlinedocs/gcc-4.9.4/libstdc++/manual/manual/status.html#status.iso.2011
#warning "GCC version < 5, faking std::is_trivially_copyable"
// #warning "GCC version < 5, faking std::is_trivially_copyable"
template<typename T> struct IsTriviallyCopyable { static constexpr bool value = true; };
#else
template<typename T> struct IsTriviallyCopyable : public std::is_trivially_copyable<T> {};