1
0
Fork 0
arangodb/cmake/CheckCXX11Features/cxx11-test-conditional.cpp

18 lines
288 B
C++

#include <type_traits>
#include <string>
template<class T> class A {
public:
typedef typename std::conditional<false, const std::string, std::string>::type StringType;
A() : s(""), t(0) {}
virtual ~A () {}
private:
StringType s;
T t;
};
int main() {
A<float> a;
return 0;
}