Update of /cvsroot/boost/boost/boost/interprocess
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv25768
Modified Files:
offset_ptr.hpp
Log Message:
Workaround for VC 8 inliner bug.
Index: offset_ptr.hpp
===================================================================
RCS file: /cvsroot/boost/boost/boost/interprocess/offset_ptr.hpp,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- offset_ptr.hpp 7 Aug 2006 13:52:22 -0000 1.2
+++ offset_ptr.hpp 2 Feb 2007 21:04:45 -0000 1.3
@@ -51,6 +51,11 @@
void unspecified_bool_type_func() const {}
typedef void (self_t::*unspecified_bool_type)() const;
+ #if (defined _MSC_VER) && (_MSC_VER >= 1400)
+ //a bug in VC8.0 makes having this
+ //inlined in release mode break things.
+ __declspec(noinline)
+ #endif
void set_offset(const void *ptr)
{
//offset == 1 && ptr != 0 is not legal for this pointer
@@ -70,6 +75,11 @@
void dec_offset(std::ptrdiff_t bytes)
{ m_offset -= bytes; }
+ #if (defined _MSC_VER) && (_MSC_VER >= 1400)
+ //a bug in VC8.0 makes having this
+ //inlined in release mode break things.
+ __declspec(noinline)
+ #endif
void* get_pointer(void) const
{ return m_offset == 1 ? 0 : detail::char_ptr_cast(this) + m_offset; }
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Boost-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/boost-cvs