Unordered: Small improvements for windows.

[SVN r73760]
This commit is contained in:
Daniel James
2011-08-14 21:03:18 +00:00
parent 431f2abfee
commit 559122f67a
6 changed files with 32 additions and 15 deletions

View File

@@ -149,7 +149,7 @@ namespace test
// Note that tags will be tested
// properly in the normal allocator.
detail::tracker.track_deallocate((void*) p, n, sizeof(T), tag_,
(Flags & propagate_swap));
(Flags & propagate_swap) ? true : false);
::operator delete((void*) p);
}
@@ -198,13 +198,13 @@ namespace test
template <typename T, allocator_flags Flags>
struct is_propagate_on_swap<cxx11_allocator<T, Flags> >
: bool_type<(bool)(Flags & propagate_swap)> {};
: bool_type<(Flags & propagate_swap) ? true : false> {};
template <typename T, allocator_flags Flags>
struct is_propagate_on_assign<cxx11_allocator<T, Flags> >
: bool_type<(bool)(Flags & propagate_assign)> {};
: bool_type<(Flags & propagate_assign) ? true : false> {};
template <typename T, allocator_flags Flags>
struct is_propagate_on_move<cxx11_allocator<T, Flags> >
: bool_type<(bool)(Flags & propagate_move)> {};
: bool_type<(Flags & propagate_move) ? true : false> {};
}
#endif