mirror of
https://github.com/boostorg/histogram.git
synced 2025-05-11 13:14:06 +00:00
fix gcc
This commit is contained in:
parent
c0009761f9
commit
3f1bd7ec65
@ -56,6 +56,9 @@ function(compiled_test SRC)
|
||||
elseif(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
|
||||
# cannot use sanitizers with gcc < 8, causes linker errors
|
||||
target_compile_options(${BASENAME} PRIVATE -Wall -Wextra -g -O0)
|
||||
if (${BASENAME} MATCHES "parallel")
|
||||
target_compile_options(${BASENAME} PRIVATE -pthread)
|
||||
endif()
|
||||
elseif(CMAKE_CXX_COMPILER_ID MATCHES "Clang")
|
||||
target_compile_options(${BASENAME} PRIVATE -Wall -Wextra -g -O0 -D__STRICT_ANSI__
|
||||
-fsanitize=address,undefined
|
||||
|
@ -36,7 +36,7 @@ public:
|
||||
copyable_atomic() = default;
|
||||
|
||||
// this is potentially not thread-safe
|
||||
copyable_atomic(const copyable_atomic& rhs) { this->operator=(rhs); }
|
||||
copyable_atomic(const copyable_atomic& rhs) : std::atomic<T>() { this->operator=(rhs); }
|
||||
|
||||
// this is potentially not thread-safe
|
||||
copyable_atomic& operator=(const copyable_atomic& rhs) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user