This is a bug in gcc 4.8 that has been fixed in 4.9. Here is the bug report:
More Related Contents:
- std::enable_if to conditionally compile a member function
- to_string is not a member of std, says g++ (mingw)
- Compiling C++11 with g++
- C++11 make_pair with specified template parameters doesn’t compile
- How does #include work in C++? [duplicate]
- Why would the behavior of std::memcpy be undefined for objects that are not TriviallyCopyable?
- What are the correct link options to use std::thread in GCC under linux?
- static_assert fails compilation even though template function is called nowhere
- Static Data Member Initialization
- 😃 (and other Unicode characters) in identifiers not allowed by g++
- error: use of deleted function
- A class name introduced inside a class is not treated as a nested class name
- GNU C++ how to check when -std=c++0x is in effect?
- Lifetime of lambda objects in relation to function pointer conversion
- How to compile C++ with C++11 support in Mac Terminal
- cc1plus: error: unrecognized command line option “-std=c++11” with g++
- “to_string” isn’t a member of “std”?
- std::this_thread::sleep_for() and GCC
- std::enable_if : parameter vs template parameter
- constexpr not working if the function is declared inside class scope
- Why can’t I use with g++ 4.9.2?
- Is substitution performed on a variadic parameter pack type if the pack is empty?
- memcpy/memmove to a union member, does this set the ‘active’ member?
- get part of std::tuple
- get part of std::tuple
- Using generic std::function objects with member functions in one class
- ‘colon’ and ‘auto’ in for loop c++? need some help understanding the syntax
- Computing length of a C string at compile time. Is this really a constexpr?
- Does this code from “The C++ Programming Language” 4th edition section 36.3.6 have well-defined behavior?
- “What happened to my SFINAE” redux: conditional template class members?