]> git.lyx.org Git - lyx.git/blobdiff - boost/boost/last_value.hpp
Also display the info about BibTeX databases in the TeX info panel.
[lyx.git] / boost / boost / last_value.hpp
index 392e2385643ec6aeaef03f41f2d716c9065ad4a0..183a739eadcae3391856feccdebfe72a851d4392 100644 (file)
@@ -11,6 +11,7 @@
 #define BOOST_LAST_VALUE_HPP
 
 #include <cassert>
+#include <boost/config.hpp>
 
 namespace boost {
   template<typename T>
@@ -30,10 +31,15 @@ namespace boost {
 
   template<>
   struct last_value<void> {
+#ifdef BOOST_NO_VOID_RETURNS
     struct unusable {};
 
   public:
     typedef unusable result_type;
+#else
+  public:
+    typedef void result_type;
+#endif // BOOST_NO_VOID_RETURNS
 
     template<typename InputIterator>
     result_type