Skip to content

Commit

Permalink
Use GNUC macro only to check for is_trivially_copyable support (foona…
Browse files Browse the repository at this point in the history
  • Loading branch information
Manu343726 authored and foonathan committed Jan 25, 2018
1 parent 6a9e5ac commit bf83762
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/type_safe/tagged_union.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ namespace type_safe
template <typename... Types>
class tagged_union
{
#if !defined(__clang__) && defined(__GNUC__) && __GNUC__ < 5
#if defined(__GNUC__) && __GNUC__ < 5
// does not have is_trivially_copyable
using trivial = detail::all_of<std::is_trivial<Types>::value...>;
#else
Expand Down

0 comments on commit bf83762

Please sign in to comment.