Currently projects require setting the target compile features to C++ 11 in CMakeLists.txt with target_compile_features(my-example PUBLIC cxx_std_11) or risk getting the following errors:
[ 50%] Building CXX object CMakeFiles/list-s3-buckets.dir/main.cpp.o
In file included from /Users/dblock/source/aws-sdk/list-s3-buckets/main.cpp:2:
In file included from /usr/local/include/aws/core/Aws.h:17:
In file included from /usr/local/include/aws/core/utils/logging/LogLevel.h:20:
In file included from /usr/local/include/aws/core/utils/memory/stl/AWSString.h:20:
In file included from /usr/local/include/aws/core/utils/memory/stl/AWSAllocator.h:21:
/usr/local/include/aws/core/utils/memory/AWSMemory.h:162:78: error: 'T' does not refer to a value
std::size_t headerSize = (std::max)(sizeof(std::size_t), alignof(T));
/usr/local/include/aws/core/utils/memory/AWSMemory.h:149:23: note: declared here
There should be a way to not have to do this for every project.
The text was updated successfully, but these errors were encountered:
Greetings! Sorry to say but this is a very old issue that is probably not getting as much attention as it deservers. We encourage you to check if this is still an issue in the latest release and if you find that this is still a problem, please feel free to open a new one.