From d8424437fcd86cb910606f0bd6e789742b465af3 Mon Sep 17 00:00:00 2001 From: Martin Moene Date: Thu, 15 Nov 2018 09:00:33 +0100 Subject: [PATCH] Remove superfluous typename In C++98, 'typename' may not be used with a non-dependent typename. In C++11 this restriction has been lifted. Now, in lest_cpp03 the C++11 implementation is chosen for VC 12 (VS 2013) as this compiler is moving towards C++11, however it's not in this respect. --- include/lest/lest.hpp | 2 +- include/lest/lest_cpp03.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/lest/lest.hpp b/include/lest/lest.hpp index 6a4973e..f14c32f 100644 --- a/include/lest/lest.hpp +++ b/include/lest/lest.hpp @@ -968,7 +968,7 @@ inline bool select( text name, texts include ) inline int indefinite( int repeat ) { return repeat == -1; } -using seed_t = typename std::mt19937::result_type; +using seed_t = std::mt19937::result_type; struct options { diff --git a/include/lest/lest_cpp03.hpp b/include/lest/lest_cpp03.hpp index cda9743..f8c8582 100644 --- a/include/lest/lest_cpp03.hpp +++ b/include/lest/lest_cpp03.hpp @@ -909,7 +909,7 @@ inline bool select( text name, texts include ) inline int indefinite( int repeat ) { return repeat == -1; } #if lest_CPP11_OR_GREATER -typedef typename std::mt19937::result_type seed_t; +typedef std::mt19937::result_type seed_t; #else typedef unsigned int seed_t; #endif