atomic/test
Andrey Semashev 406228d493 Made initializing constructor of atomic<> implicit.
This is an attempt to make boost::atomic<> interface closer to the standard. It
makes a difference in C++17 as it mandates copy elision, which makes this code
possible:

  boost::atomic<int> a = 10;

It also makes is_convertible<T, boost::atomic<T>> return true, which has
implications on the standard library components, such as std::pair.

This removes the workaround for gcc 4.7, which complains that
operator=(value_arg_type) is considered ambiguous with operator=(atomic const&)
in assignment expressions, even though conversion to atomic<> is less preferred
than conversion to value_arg_type. We try to work around the problem from the
operator= side.

Added a new compile test to check that the initializing constructor is implicit.
2018-02-20 01:39:52 +03:00
..
api_test_helpers.hpp Added casts to silence MSVC warnings about lost FP precision of constants. 2018-02-18 13:57:32 +03:00
atomicity.cpp Removed unnecessary includes to reduce dependencies. 2018-02-13 19:36:00 +03:00
c_implicit_ctor.cpp Made initializing constructor of atomic<> implicit. 2018-02-20 01:39:52 +03:00
cf_arith_func_ptr.cpp Updated to reflect changes from P0558R1 accepted into C++17. 2017-04-01 18:29:26 +03:00
cf_arith_mem_ptr.cpp Updated to reflect changes from P0558R1 accepted into C++17. 2017-04-01 18:29:26 +03:00
cf_arith_void_ptr.cpp Updated to reflect changes from P0558R1 accepted into C++17. 2017-04-01 18:29:26 +03:00
fallback_api.cpp Added support for atomic floating point operations. 2018-02-13 03:36:35 +03:00
Jamfile.v2 Made initializing constructor of atomic<> implicit. 2018-02-20 01:39:52 +03:00
lockfree.cpp Added support for atomic floating point operations. 2018-02-13 03:36:35 +03:00
native_api.cpp Added support for atomic floating point operations. 2018-02-13 03:36:35 +03:00
ordering.cpp Removed unnecessary includes to reduce dependencies. 2018-02-13 19:36:00 +03:00
value_with_epsilon.hpp Added support for atomic floating point operations. 2018-02-13 03:36:35 +03:00