Opened 14 years ago
Closed 13 years ago
#2290 closed Patches (invalid)
Patch for GCC-4.0.1 compatibility (and better compile time).
| Reported by: | Dave Abrahams | Owned by: | Matthias Troyer |
|---|---|---|---|
| Milestone: | Boost 1.37.0 | Component: | serialization |
| Version: | Boost 1.35.0 | Severity: | Problem |
| Keywords: | workaround | Cc: | Matthias Troyer |
Description
This patch makes the tests build on GCC-4.0.1 and leaves out what I believe to be the unnecessary step of checking whether a metafunction class is actually a placeholder expression. If I'm understanding correcetly, it will always be a metafunction class, and not just in the tested examples.
Note that this patch is against 1.35.x; I know things have been shuffled for 1.36 but I assume the same transformation can be applied elsewhere.
-
boost/archive/array/iarchive.hpp
108 108 template<class ValueType> 109 109 void load_override(serialization::array<ValueType> const& x, unsigned int version) 110 110 { 111 typedef typename mpl::apply 1<111 typedef typename mpl::apply_wrap1< 112 112 BOOST_DEDUCED_TYPENAME Archive::use_array_optimization 113 113 , ValueType 114 114 >::type use_optimized; -
boost/archive/array/oarchive.hpp
107 107 template<class ValueType> 108 108 void save_override(serialization::array<ValueType> const& x, unsigned int version) 109 109 { 110 typedef typename mpl::apply 1<110 typedef typename mpl::apply_wrap1< 111 111 BOOST_DEDUCED_TYPENAME Archive::use_array_optimization 112 112 , BOOST_DEDUCED_TYPENAME remove_const<ValueType>::type 113 113 >::type use_optimized;
Change History (3)
comment:1 by , 14 years ago
| Owner: | changed from to |
|---|
comment:2 by , 14 years ago
| Status: | new → assigned |
|---|
comment:3 by , 13 years ago
| Resolution: | → invalid |
|---|---|
| Status: | assigned → closed |
I'm closing this since the offending code has been rewritten in the meantime but will keep the fix in mind if it should reappear.
Note:
See TracTickets
for help on using tickets.

matthias - could you look at this please?