Ticket #1043: last_value.hpp.patch

File last_value.hpp.patch, 774 bytes (added by Stjepan Rajko, 15 years ago)
  • last_value.hpp

    RCS file: /cvsroot/boost/boost/boost/last_value.hpp,v
    retrieving revision 1.5
    diff -u -r1.5 last_value.hpp
     
    1111#define BOOST_LAST_VALUE_HPP
    1212
    1313#include <cassert>
     14#include <boost/config.hpp>
    1415
    1516namespace boost {
    1617  template<typename T>
     
    3031
    3132  template<>
    3233  struct last_value<void> {
     34#ifdef BOOST_NO_VOID_RETURNS
    3335    struct unusable {};
    3436
    3537  public:
    3638    typedef unusable result_type;
     39#else
     40  public:
     41    typedef void result_type;
     42#endif // BOOST_NO_VOID_RETURNS
    3743
    3844    template<typename InputIterator>
    3945    result_type