mirror of
https://github.com/boostorg/histogram.git
synced 2025-05-10 07:14:05 +00:00
removing concept checks, not working...
This commit is contained in:
parent
c4cf612a13
commit
2d41cbb540
@ -9,7 +9,6 @@
|
|||||||
#include <boost/serialization/base_object.hpp>
|
#include <boost/serialization/base_object.hpp>
|
||||||
#include <boost/shared_ptr.hpp>
|
#include <boost/shared_ptr.hpp>
|
||||||
#include <boost/assert.hpp>
|
#include <boost/assert.hpp>
|
||||||
#include <boost/concept/requires.hpp>
|
|
||||||
#include <ostream>
|
#include <ostream>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
@ -42,9 +41,9 @@ BOOST_PP_REPEAT_FROM_TO(1, BOOST_HISTOGRAM_AXIS_LIMIT, BOOST_NHISTOGRAM_CTOR, ni
|
|||||||
|
|
||||||
double sum() const;
|
double sum() const;
|
||||||
|
|
||||||
template <typename T>
|
template <typename Container>
|
||||||
inline
|
inline
|
||||||
void fill(const T& v)
|
void fill(const Container& v)
|
||||||
{
|
{
|
||||||
BOOST_ASSERT(v.size() == dim());
|
BOOST_ASSERT(v.size() == dim());
|
||||||
const size_type k = pos(v);
|
const size_type k = pos(v);
|
||||||
@ -73,8 +72,8 @@ BOOST_PP_REPEAT_FROM_TO(1, BOOST_HISTOGRAM_AXIS_LIMIT, BOOST_NHISTOGRAM_CTOR, ni
|
|||||||
// generates fill functions taking 1 to AXIS_LIMT arguments
|
// generates fill functions taking 1 to AXIS_LIMT arguments
|
||||||
BOOST_PP_REPEAT_FROM_TO(1, BOOST_HISTOGRAM_AXIS_LIMIT, BOOST_NHISTOGRAM_FILL, nil)
|
BOOST_PP_REPEAT_FROM_TO(1, BOOST_HISTOGRAM_AXIS_LIMIT, BOOST_NHISTOGRAM_FILL, nil)
|
||||||
|
|
||||||
template <typename Array>
|
template <typename Container>
|
||||||
double value(const Array& idx)
|
double value(const Container& idx)
|
||||||
const
|
const
|
||||||
{
|
{
|
||||||
BOOST_ASSERT(idx.size() == dim());
|
BOOST_ASSERT(idx.size() == dim());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user