Skip to content

Commit

Permalink
Remove superfluous typename
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
martinmoene committed Nov 15, 2018
1 parent 4928146 commit d842443
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/lest/lest.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down
2 changes: 1 addition & 1 deletion include/lest/lest_cpp03.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d842443

Please sign in to comment.