Added boost-wide <limits> woraround

[SVN r9688]
This commit is contained in:
John Maddock
2001-04-01 11:59:18 +00:00
parent 229bcfde08
commit 68988c687d
2 changed files with 5 additions and 2 deletions

View File

@@ -48,7 +48,7 @@ namespace boost {
class static_object { class static_object {
public: public:
static T& get() { static T& get() {
char d[sizeof(T)]; static char d[sizeof(T)];
return *reinterpret_cast<T*>(d); return *reinterpret_cast<T*>(d);
} }
}; };

View File

@@ -5,13 +5,16 @@
// "as is" without express or implied warranty, and with no claim as // "as is" without express or implied warranty, and with no claim as
// to its suitability for any purpose. // to its suitability for any purpose.
// //
// Revision History:
// 01 April 2001: Modified to use new <boost/limits.hpp> header. (JMaddock)
//
#ifndef BOOST_CONCEPT_CHECKS_HPP #ifndef BOOST_CONCEPT_CHECKS_HPP
#define BOOST_CONCEPT_CHECKS_HPP #define BOOST_CONCEPT_CHECKS_HPP
#include <boost/config.hpp> #include <boost/config.hpp>
#include <boost/iterator.hpp> #include <boost/iterator.hpp>
#include <utility> #include <utility>
#include <boost/pending/limits.hpp> #include <boost/limits.hpp>
#include <boost/static_assert.hpp> #include <boost/static_assert.hpp>
#if defined(BOOST_MSVC) || defined(__BORLANDC__) #if defined(BOOST_MSVC) || defined(__BORLANDC__)