2
0
mirror of https://github.com/boostorg/fiber.git synced 2026-02-20 02:32:19 +00:00

fix typos on MSVC branch

This commit is contained in:
Oliver Kowalke
2012-11-24 11:41:04 +01:00
parent 3fe885d035
commit 88dbca3a8f

View File

@@ -80,13 +80,13 @@ public:
explicit fiber( fiber_fn fn, attributes const& attr = attributes(),
stack_allocator const& stack_alloc = stack_allocator(),
std::allocacator< fiber > const& alloc = std::allocator< fiber >() ) :
std::allocator< fiber > const& alloc = std::allocator< fiber >() ) :
impl_()
{
typedef detail::fiber_object<
fiber_fn, stack_allocator, std::allocator< fiber >
> object_t;
typename object_t::allocator_t a( alloc);
object_t::allocator_t a( alloc);
impl_ = ptr_t(
// placement new
::new( a.allocate( 1) ) object_t( forward< fiber_fn >( fn), attr, stack_alloc, a) );
@@ -96,13 +96,13 @@ public:
template< typename StackAllocator >
explicit fiber( fiber_fn fn, attributes const& attr,
StackAllocator const& stack_alloc,
std::allocacator< fiber > const& alloc = std::allocator< fiber >() ) :
std::allocator< fiber > const& alloc = std::allocator< fiber >() ) :
impl_()
{
typedef detail::fiber_object<
fiber_fn, StackAllocator, std::allocator< fiber >
> object_t;
typename object_t::allocator_t a( alloc);
object_t::allocator_t a( alloc);
impl_ = ptr_t(
// placement new
::new( a.allocate( 1) ) object_t( forward< fiber_fn >( fn), attr, stack_alloc, a) );
@@ -112,13 +112,13 @@ public:
template< typename StackAllocator, typename Allocator >
explicit fiber( fiber_fn fn, attributes const& attr,
StackAllocator const& stack_alloc,
Allocacator const& alloc) :
Allocator const& alloc) :
impl_()
{
typedef detail::fiber_object<
fiber_fn, StackAllocator, Allocator
> object_t;
typename object_t::allocator_t a( alloc);
object_t::allocator_t a( alloc);
impl_ = ptr_t(
// placement new
::new( a.allocate( 1) ) object_t( forward< fiber_fn >( fn), attr, stack_alloc, a) );