Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Use std::{true,false}_type in is_future
authorGabriel Corona <gabriel.corona@loria.fr>
Wed, 29 Jun 2016 13:18:03 +0000 (15:18 +0200)
committerGabriel Corona <gabriel.corona@loria.fr>
Wed, 29 Jun 2016 13:18:03 +0000 (15:18 +0200)
include/simgrid/kernel/future.hpp

index 5c11dbb..a159b6b 100644 (file)
@@ -36,9 +36,9 @@ enum class FutureStatus {
 };
 
 template<class T>
-struct is_future : public std::integral_constant<bool, false> {};
+struct is_future : std::false_type {};
 template<class T>
-struct is_future<Future<T>> : public std::integral_constant<bool, true> {};
+struct is_future<Future<T>> : std::true_type {};
 
 /** Bases stuff for all @ref simgrid::kernel::FutureState<T> */
 class FutureStateBase {