Commit 131f8fc3 authored by Dominik Charousset's avatar Dominik Charousset

Work around weird GCC 4.8 STL implementation

parent 2e54fa3b
...@@ -158,6 +158,13 @@ struct is_primitive { ...@@ -158,6 +158,13 @@ struct is_primitive {
|| std::is_convertible<T, atom_value>::value; || std::is_convertible<T, atom_value>::value;
}; };
// Workaround for weird GCC 4.8 STL implementation that breaks
// `std::is_convertible<T, atom_value>::value` for tuples containing atom
// constants.
// TODO: remove when dropping support for GCC 4.8.
template <class... Ts>
struct is_primitive<std::tuple<Ts...>> : std::false_type {};
/// Checks whether `T1` is comparable with `T2`. /// Checks whether `T1` is comparable with `T2`.
template <class T1, class T2> template <class T1, class T2>
class is_comparable { class is_comparable {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment