RCS file: /cvsroot/boost/boost/boost/last_value.hpp,v
retrieving revision 1.5
diff -u -r1.5 last_value.hpp
|
|
|
|
| 11 | 11 | #define BOOST_LAST_VALUE_HPP |
| 12 | 12 | |
| 13 | 13 | #include <cassert> |
| | 14 | #include <boost/config.hpp> |
| 14 | 15 | |
| 15 | 16 | namespace boost { |
| 16 | 17 | template<typename T> |
| … |
… |
|
| 30 | 31 | |
| 31 | 32 | template<> |
| 32 | 33 | struct last_value<void> { |
| | 34 | #ifdef BOOST_NO_VOID_RETURNS |
| 33 | 35 | struct unusable {}; |
| 34 | 36 | |
| 35 | 37 | public: |
| 36 | 38 | typedef unusable result_type; |
| | 39 | #else |
| | 40 | public: |
| | 41 | typedef void result_type; |
| | 42 | #endif // BOOST_NO_VOID_RETURNS |
| 37 | 43 | |
| 38 | 44 | template<typename InputIterator> |
| 39 | 45 | result_type |