mirror of
https://github.com/boostorg/concept_check.git
synced 2025-08-03 22:44:43 +02:00
Added boost-wide <limits> woraround
[SVN r9688]
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@@ -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__)
|
||||||
|
Reference in New Issue
Block a user