I compiled a GCC 7.3.0 on Centos 6 and compile my program using C++98 without the C++11 API thanks to the flag : -D_GLIBCXX_USE_CXX11_ABI=0
.
The following code does not compile as scoped_ptr is not an std type.
#if __GNUC__ >= 6 typedef std::scoped_ptr<CharReader> const CharReaderPtr; #else typedef std::auto_ptr<CharReader> CharReaderPtr; #endif
I don't know in which std version std::scoped_ptr exists but it does not seem to be part of the STL, if it was part of C++11 then a __cplusplus >= 201103L
condition would solve the issue. GNUC only gives the GCC version and does not guarantee the presence of scoped_ptr.
To solve my issue I kept only the auto_ptr typedef.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4