mirror of
https://github.com/boostorg/detail.git
synced 2025-07-30 04:17:14 +02:00
Merge from trunk
[SVN r39987]
This commit is contained in:
@ -1,4 +1,4 @@
|
|||||||
/* Copyright 2003-2005 Joaqu<71>n M L<>pez Mu<4D>oz.
|
/* Copyright 2003-2007 Joaqu<71>n M L<>pez Mu<4D>oz.
|
||||||
* Distributed under the Boost Software License, Version 1.0.
|
* Distributed under the Boost Software License, Version 1.0.
|
||||||
* (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)
|
||||||
@ -30,13 +30,21 @@ namespace detail{
|
|||||||
namespace allocator{
|
namespace allocator{
|
||||||
|
|
||||||
/* partial_std_allocator_wrapper inherits the functionality of a std
|
/* partial_std_allocator_wrapper inherits the functionality of a std
|
||||||
* allocator while providing a templatized ctor.
|
* allocator while providing a templatized ctor and other bits missing
|
||||||
|
* in some stdlib implementation or another.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
template<typename Type>
|
template<typename Type>
|
||||||
class partial_std_allocator_wrapper:public std::allocator<Type>
|
class partial_std_allocator_wrapper:public std::allocator<Type>
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
/* Oddly enough, STLport does not define std::allocator<void>::value_type
|
||||||
|
* when configured to work without partial template specialization.
|
||||||
|
* No harm in supplying the definition here unconditionally.
|
||||||
|
*/
|
||||||
|
|
||||||
|
typedef Type value_type;
|
||||||
|
|
||||||
partial_std_allocator_wrapper(){};
|
partial_std_allocator_wrapper(){};
|
||||||
|
|
||||||
template<typename Other>
|
template<typename Other>
|
||||||
|
Reference in New Issue
Block a user