Skip to content

Commit ada5ee3

Browse files
committed
Merge branch 'develop' of github.com:boostorg/container into develop
2 parents 9ad078f + f0708de commit ada5ee3

File tree

9 files changed

+12
-12
lines changed

9 files changed

+12
-12
lines changed

include/boost/container/allocator.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ class allocator
116116
allocator& operator=(const allocator<T2, Version2, AllocationDisableMask2>&);
117117

118118
BOOST_STATIC_CONSTEXPR unsigned int ForbiddenMask =
119-
BOOST_CONTAINER_ALLOCATE_NEW | BOOST_CONTAINER_EXPAND_BWD | BOOST_CONTAINER_EXPAND_FWD ;
119+
BOOST_CONTAINER_ALLOCATE_NEW | BOOST_CONTAINER_EXPAND_BWD | BOOST_CONTAINER_EXPAND_FWD;
120120

121121
//The mask can't disable all the allocation types
122122
BOOST_CONTAINER_STATIC_ASSERT(( (AllocationDisableMask & ForbiddenMask) != ForbiddenMask ));

include/boost/container/detail/copy_move_algo.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ inline F memmove(I f, I l, F r) BOOST_NOEXCEPT_OR_NOTHROW
228228
const value_type *const end_raw = boost::movelib::iterator_to_raw_pointer(l);
229229
if(BOOST_LIKELY(beg_raw != end_raw && dest_raw && beg_raw)){
230230
const std::size_t n = std::size_t(end_raw - beg_raw) ;
231-
std::memmove(dest_raw, beg_raw, sizeof(value_type)*n);
231+
std::memmove(reinterpret_cast<void *>(dest_raw), beg_raw, sizeof(value_type)*n);
232232
r += static_cast<r_difference_type>(n);
233233
}
234234
return r;
@@ -955,7 +955,7 @@ inline typename dtl::enable_if_memtransfer_copy_assignable<I, F, F>::type
955955
const std::size_t n = boost::container::iterator_udistance(f, l);
956956
if (BOOST_LIKELY(n != 0)){
957957
r -= n;
958-
std::memmove((boost::movelib::iterator_to_raw_pointer)(r), (boost::movelib::iterator_to_raw_pointer)(f), sizeof(value_type)*n);
958+
std::memmove(reinterpret_cast<void *>((boost::movelib::iterator_to_raw_pointer)(r)), (boost::movelib::iterator_to_raw_pointer)(f), sizeof(value_type)*n);
959959
}
960960
return r;
961961
}

include/boost/container/detail/pair.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -555,7 +555,7 @@ template<class A, class B>
555555
struct is_trivially_copy_assignable
556556
<boost::container::dtl::pair<A,B> >
557557
{
558-
BOOST_STATIC_CONSTEXPR bool value = false ;
558+
BOOST_STATIC_CONSTEXPR bool value = false;
559559
};
560560

561561
template<class T>
@@ -593,7 +593,7 @@ template<class A, class B>
593593
struct is_trivially_destructible<boost::container::dtl::pair<A,B> >
594594
{
595595
BOOST_STATIC_CONSTEXPR bool value = boost::move_detail::is_trivially_destructible<A>::value &&
596-
boost::move_detail::is_trivially_destructible<B>::value ;
596+
boost::move_detail::is_trivially_destructible<B>::value;
597597
};
598598

599599

include/boost/container/list.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ struct intrusive_list_type
9090
, dtl::bi::size_type
9191
<typename allocator_traits_type::size_type>
9292
>::type container_type;
93-
typedef container_type type ;
93+
typedef container_type type;
9494
};
9595

9696
} //namespace dtl {

include/boost/container/new_allocator.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ class new_allocator
163163
void deallocate(pointer ptr, size_type n) BOOST_NOEXCEPT_OR_NOTHROW
164164
{
165165
(void)n;
166-
# if __cpp_sized_deallocation
166+
# if defined(__cpp_sized_deallocation)
167167
::operator delete((void*)ptr, n * sizeof(T));
168168
#else
169169
::operator delete((void*)ptr);

include/boost/container/slist.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ struct intrusive_slist_type
9494
, dtl::bi::size_type
9595
<typename allocator_traits_type::size_type>
9696
>::type container_type;
97-
typedef container_type type ;
97+
typedef container_type type;
9898
};
9999

100100
} //namespace dtl {

test/allocator_argument_tester.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ class propagation_test_allocator
7474
void deallocate(value_type *ptr, std::size_t n)
7575
{
7676
(void)n;
77-
# if __cpp_sized_deallocation
77+
# if defined(__cpp_sized_deallocation)
7878
::operator delete((void*)ptr, n * sizeof(value_type));
7979
#else
8080
::operator delete((void*)ptr);

test/dummy_test_allocator.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ class simple_allocator
6565
void deallocate(T *ptr, std::size_t n) BOOST_NOEXCEPT_OR_NOTHROW
6666
{
6767
(void)n;
68-
# if __cpp_sized_deallocation
68+
# if defined(__cpp_sized_deallocation)
6969
::operator delete((void*)ptr, n * sizeof(T));
7070
#else
7171
::operator delete((void*)ptr);
@@ -187,7 +187,7 @@ class propagation_test_allocator
187187
void deallocate(T *ptr, std::size_t n) BOOST_NOEXCEPT_OR_NOTHROW
188188
{
189189
(void)n;
190-
# if __cpp_sized_deallocation
190+
# if defined(__cpp_sized_deallocation)
191191
::operator delete((void*)ptr, n * sizeof(T));
192192
#else
193193
::operator delete((void*)ptr);

test/explicit_inst_vector_test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class CustomAllocator
3838
void deallocate(pointer ptr, size_type n)
3939
{
4040
(void)n;
41-
# if __cpp_sized_deallocation
41+
# if defined(__cpp_sized_deallocation)
4242
::operator delete((void*)ptr, n * sizeof(value_type));
4343
#else
4444
::operator delete((void*)ptr);

0 commit comments

Comments
 (0)