Commit 80f018fc authored by Matthieu Dorier's avatar Matthieu Dorier

changed some construct to make it acceptable in c++11

parent 4aa16ad1
......@@ -50,7 +50,7 @@ class eventual {
/**
* @brief Type of value stored by the eventual.
*/
using value_type = std::remove_reference_t<std::remove_cv_t<T>>;
using value_type = typename std::remove_reference<typename std::remove_cv<T>::type>::type;
/**
* @brief Native handle type.
*/
......
......@@ -67,7 +67,7 @@ public:
*/
template<typename T>
buffer_input_archive& operator&(T&& obj) {
read_impl(std::forward<T>(obj), std::is_arithmetic<std::decay_t<T>>());
read_impl(std::forward<T>(obj), std::is_arithmetic<typename std::decay<T>::type>());
return *this;
}
......
......@@ -69,7 +69,7 @@ public:
*/
template<typename T>
buffer_output_archive& operator&(T&& obj) {
write_impl(std::forward<T>(obj), std::is_arithmetic<std::decay_t<T>>());
write_impl(std::forward<T>(obj), std::is_arithmetic<typename std::decay<T>::type>());
return *this;
}
......
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