mirror of
https://github.com/boostorg/atomic.git
synced 2026-02-02 08:22:08 +00:00
1. Expose value_type and difference_type (where present) to user's code. 2. Prohibit arithmetic operations on pointers to non-object types. In particular, arithmetic operations such as fetch_add/fetch_sub will no longer compile for pointers to cv void, pointers to functions and pointers to non-static class members. Also, use C++11 <type_traits> when possible instead of Boost.TypeTraits to reduce dependencies. Cleaned up value_arg_type internal type usage for more efficient argument passing.
32 lines
917 B
Plaintext
32 lines
917 B
Plaintext
# Boost.Atomic Library test Jamfile
|
|
#
|
|
# Copyright (c) 2011 Helge Bahmann
|
|
# Copyright (c) 2012 Tim Blechmann
|
|
#
|
|
# Distributed under the Boost Software License, Version 1.0. (See
|
|
# accompanying file LICENSE_1_0.txt or copy at
|
|
# http://www.boost.org/LICENSE_1_0.txt)
|
|
|
|
import testing ;
|
|
|
|
project boost/atomic/test
|
|
: requirements
|
|
<threading>multi
|
|
<library>/boost/thread//boost_thread
|
|
<library>/boost/atomic//boost_atomic
|
|
<target-os>windows:<define>BOOST_USE_WINDOWS_H
|
|
<target-os>windows:<define>_WIN32_WINNT=0x0500
|
|
<toolset>gcc,<target-os>windows:<linkflags>"-lkernel32"
|
|
;
|
|
|
|
test-suite atomic
|
|
: [ run native_api.cpp ]
|
|
[ run fallback_api.cpp ]
|
|
[ run atomicity.cpp ]
|
|
[ run ordering.cpp ]
|
|
[ run lockfree.cpp ]
|
|
[ compile-fail cf_arith_void_ptr.cpp ]
|
|
[ compile-fail cf_arith_func_ptr.cpp ]
|
|
[ compile-fail cf_arith_mem_ptr.cpp ]
|
|
;
|