Skip to content

Commit

Permalink
Merge pull request #107 from LegalizeAdulthood/patch-1
Browse files Browse the repository at this point in the history
Correct in place factory example code
  • Loading branch information
Lastique authored Feb 15, 2024
2 parents 9abd1fc + bff26e4 commit e0ecf92
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/in_place_factory.qbk
Original file line number Diff line number Diff line change
Expand Up @@ -256,13 +256,13 @@ struct C
~C() { delete contained_ ; }

template<class InPlaceFactory>
void construct ( InPlaceFactory const& aFactory, boost::__in_place_factory_base__* )
void construct ( InPlaceFactory const& aFactory, const boost::__in_place_factory_base__* )
{
aFactory.template apply<X>(contained_);
}

template<class TypedInPlaceFactory>
void construct ( TypedInPlaceFactory const& aFactory, boost::__typed_in_place_factory_base__* )
void construct ( TypedInPlaceFactory const& aFactory, const boost::__typed_in_place_factory_base__* )
{
aFactory.apply(contained_);
}
Expand Down

0 comments on commit e0ecf92

Please sign in to comment.