mirror of
https://github.com/boostorg/core.git
synced 2025-07-30 04:47:24 +02:00
Merge branch 'develop'
This commit is contained in:
@ -25,7 +25,6 @@ install:
|
|||||||
- git submodule init libs/static_assert
|
- git submodule init libs/static_assert
|
||||||
- git submodule init libs/type_traits
|
- git submodule init libs/type_traits
|
||||||
- git submodule init tools/build
|
- git submodule init tools/build
|
||||||
- git submodule init tools/inspect
|
|
||||||
- git submodule update
|
- git submodule update
|
||||||
- cd libs/core
|
- cd libs/core
|
||||||
- git checkout -q $TRAVIS_COMMIT
|
- git checkout -q $TRAVIS_COMMIT
|
||||||
|
@ -21,7 +21,6 @@ install:
|
|||||||
- git submodule init libs/static_assert
|
- git submodule init libs/static_assert
|
||||||
- git submodule init libs/type_traits
|
- git submodule init libs/type_traits
|
||||||
- git submodule init tools/build
|
- git submodule init tools/build
|
||||||
- git submodule init tools/inspect
|
|
||||||
- git submodule update
|
- git submodule update
|
||||||
- cd libs\core
|
- cd libs\core
|
||||||
- git checkout -q %APPVEYOR_REPO_COMMIT%
|
- git checkout -q %APPVEYOR_REPO_COMMIT%
|
||||||
|
@ -9,6 +9,9 @@
|
|||||||
// This header is obsolete and will be deprecated.
|
// This header is obsolete and will be deprecated.
|
||||||
|
|
||||||
#include <iterator>
|
#include <iterator>
|
||||||
|
#if defined(__SUNPRO_CC) && (defined(__SGI_STL_PORT) || defined(_STLPORT_VERSION))
|
||||||
|
#include <cstddef>
|
||||||
|
#endif
|
||||||
|
|
||||||
namespace boost
|
namespace boost
|
||||||
{
|
{
|
||||||
@ -19,6 +22,16 @@ namespace detail
|
|||||||
using std::iterator_traits;
|
using std::iterator_traits;
|
||||||
using std::distance;
|
using std::distance;
|
||||||
|
|
||||||
|
#if defined(__SUNPRO_CC) && (defined(__SGI_STL_PORT) || defined(_STLPORT_VERSION))
|
||||||
|
// std::distance from stlport with Oracle compiler 12.4 and 12.5 fails to deduce template parameters
|
||||||
|
// when one of the arguments is an array and the other one is a pointer.
|
||||||
|
template< typename T, std::size_t N >
|
||||||
|
inline typename std::iterator_traits< T* >::difference_type distance(T (&left)[N], T* right)
|
||||||
|
{
|
||||||
|
return std::distance(static_cast< T* >(left), right);
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
} // namespace detail
|
} // namespace detail
|
||||||
|
|
||||||
} // namespace boost
|
} // namespace boost
|
||||||
|
@ -6,6 +6,7 @@
|
|||||||
# See accompanying file LICENSE_1_0.txt or copy at
|
# See accompanying file LICENSE_1_0.txt or copy at
|
||||||
# http://www.boost.org/LICENSE_1_0.txt
|
# http://www.boost.org/LICENSE_1_0.txt
|
||||||
|
|
||||||
|
import modules ;
|
||||||
import testing ;
|
import testing ;
|
||||||
|
|
||||||
run addressof_test.cpp ;
|
run addressof_test.cpp ;
|
||||||
@ -92,3 +93,6 @@ compile-fail scoped_enum_compile_fail_conv_from_int.cpp ;
|
|||||||
compile-fail scoped_enum_compile_fail_conv_to_int.cpp ;
|
compile-fail scoped_enum_compile_fail_conv_to_int.cpp ;
|
||||||
|
|
||||||
run underlying_type.cpp ;
|
run underlying_type.cpp ;
|
||||||
|
|
||||||
|
use-project /boost/core/swap : ./swap ;
|
||||||
|
build-project ./swap ;
|
||||||
|
Reference in New Issue
Block a user