Logoj0ke.net Open Build Service > Projects > server:monitoring:branches:gearman:1.0.1 > boost > boost-strict_aliasing.patch
Sign Up | Log In

File boost-strict_aliasing.patch of Package boost

x
 
1
Index: libs/python/build/Jamfile.v2
2
===================================================================
3
--- libs/python/build/Jamfile.v2.orig   2010-07-13 00:29:41.000000000 +0200
4
+++ libs/python/build/Jamfile.v2    2010-08-24 12:51:20.939878260 +0200
5
@@ -51,6 +51,7 @@ project boost/python
6
   : requirements
7
     -<tag>@$(BOOST_JAMROOT_MODULE)%$(BOOST_JAMROOT_MODULE).tag
8
     <tag>@$(__name__).tag
9
+   <cxxflags>-fno-strict-aliasing
10
   ;
11
 
12
 rule tag ( name : type ? : property-set )
13
Index: boost/function/function_base.hpp
14
===================================================================
15
--- boost/function/function_base.hpp.orig   2010-07-05 00:38:38.000000000 +0200
16
+++ boost/function/function_base.hpp    2010-08-24 12:48:57.271702046 +0200
17
@@ -318,11 +318,11 @@ namespace boost {
18
             new ((void*)&out_buffer.data) functor_type(*in_functor);
19
 
20
             if (op == move_functor_tag) {
21
-              reinterpret_cast<functor_type*>(&in_buffer.data)->~Functor();
22
+              reinterpret_cast<const functor_type*>(&in_buffer)->~Functor();
23
             }
24
           } else if (op == destroy_functor_tag) {
25
             // Some compilers (Borland, vc6, ...) are unhappy with ~functor_type.
26
-            reinterpret_cast<functor_type*>(&out_buffer.data)->~Functor();
27
+            reinterpret_cast<const functor_type*>(&out_buffer)->~Functor();
28
           } else if (op == check_functor_type_tag) {
29
             const detail::sp_typeinfo& check_type 
30
               = *out_buffer.type.type;
31