|
Boost-Commit : |
From: markus.schoepflin_at_[hidden]
Date: 2007-10-11 03:36:42
Author: schoepflin
Date: 2007-10-11 03:36:41 EDT (Thu, 11 Oct 2007)
New Revision: 39918
URL: http://svn.boost.org/trac/boost/changeset/39918
Log:
Fixed bug preventing compilation on Tru64/CXX.
Text files modified:
trunk/boost/utility/typed_in_place_factory.hpp | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
Modified: trunk/boost/utility/typed_in_place_factory.hpp
==============================================================================
--- trunk/boost/utility/typed_in_place_factory.hpp (original)
+++ trunk/boost/utility/typed_in_place_factory.hpp 2007-10-11 03:36:41 EDT (Thu, 11 Oct 2007)
@@ -54,8 +54,8 @@
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<char *>(next) + sizeof(T));
return address;
}
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk