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

     
    108108  template<class ValueType>
    109109  void load_override(serialization::array<ValueType> const& x, unsigned int version)
    110110  {
    111     typedef typename mpl::apply1<
     111    typedef typename mpl::apply_wrap1<
    112112        BOOST_DEDUCED_TYPENAME Archive::use_array_optimization
    113113      , ValueType
    114114    >::type use_optimized;
  • boost/archive/array/oarchive.hpp

     
    107107  template<class ValueType>
    108108  void save_override(serialization::array<ValueType> const& x, unsigned int version)
    109109  {
    110     typedef typename mpl::apply1<
     110    typedef typename mpl::apply_wrap1<
    111111        BOOST_DEDUCED_TYPENAME Archive::use_array_optimization
    112112      , BOOST_DEDUCED_TYPENAME remove_const<ValueType>::type
    113113    >::type use_optimized;

Change History (3)

comment:1 by Robert Ramey, 14 years ago

Owner: changed from Robert Ramey to Matthias Troyer

matthias - could you look at this please?

comment:2 by Matthias Troyer, 14 years ago

Status: newassigned

comment:3 by Matthias Troyer, 13 years ago

Resolution: invalid
Status: assignedclosed

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.