From a03b698e5aadced166d2dce932ef6d267a8904d7 Mon Sep 17 00:00:00 2001 From: alex85k Date: Thu, 5 Jun 2014 22:55:22 +0600 Subject: [PATCH] simplify static asserts Simplify static asserts to make them compatible with older compilers and MSVC 2013 --- DataStructures/SearchEngine.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/DataStructures/SearchEngine.h b/DataStructures/SearchEngine.h index ae3185753..58f5e774d 100644 --- a/DataStructures/SearchEngine.h +++ b/DataStructures/SearchEngine.h @@ -50,8 +50,8 @@ template class SearchEngine : facade(facade), shortest_path(facade, engine_working_data), alternative_path(facade, engine_working_data), distance_table(facade, engine_working_data) { - static_assert(!std::is_pointer(), "don't instantiate with ptr type"); - static_assert(std::is_object(), "don't instantiate with void, function, or reference"); + static_assert(!std::is_pointer::value, "don't instantiate with ptr type"); + static_assert(std::is_object::value, "don't instantiate with void, function, or reference"); } ~SearchEngine() {}