From 8f4db5aa5b43dbb4f0c47c607c2b4d1ca790ffb2 Mon Sep 17 00:00:00 2001 From: Nicola Musatti Date: Sat, 13 Oct 2007 21:25:29 +0000 Subject: [PATCH] Merge from trunk [SVN r39987] --- include/boost/utility/typed_in_place_factory.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/boost/utility/typed_in_place_factory.hpp b/include/boost/utility/typed_in_place_factory.hpp index f5de755..347b7f4 100644 --- a/include/boost/utility/typed_in_place_factory.hpp +++ b/include/boost/utility/typed_in_place_factory.hpp @@ -54,8 +54,8 @@ public: void* apply (void* address, std::size_t n) const { - for(char* next = address = this->apply(address); !! --n;) - this->apply(next = next+sizeof(T)); + for(void* next = address = this->apply(address); !! --n;) + this->apply(next = static_cast(next) + sizeof(T)); return address; }