Some VS warnings fixed.

[SVN r81923]
This commit is contained in:
Adam Wulkiewicz
2012-12-13 23:08:37 +00:00
parent 3f1d769d9f
commit 34768c2fb2
3 changed files with 7 additions and 4 deletions

View File

@@ -301,7 +301,10 @@ template <size_t Corner>
struct partial_sort<Corner, 1>
{
template <typename Elements, typename Translator>
static inline void apply(Elements & elements, const size_t axis, const size_t index, Translator const& tr)
static inline void apply(Elements & elements,
const size_t BOOST_GEOMETRY_INDEX_ASSERT_UNUSED_PARAM(axis),
const size_t index,
Translator const& tr)
{
BOOST_GEOMETRY_INDEX_ASSERT(axis == 0, "unexpected axis value");

View File

@@ -7,9 +7,10 @@
// http://www.boost.org/LICENSE_1_0.txt)
#include <boost/aligned_storage.hpp>
#include <boost/assert.hpp>
#include <boost/iterator/reverse_iterator.hpp>
#include <boost/geometry/extensions/index/assert.hpp>
#ifndef BOOST_GEOMETRY_EXTENSIONS_INDEX_STATIC_VECTOR_HPP
#define BOOST_GEOMETRY_EXTENSIONS_INDEX_STATIC_VECTOR_HPP
@@ -109,7 +110,7 @@ public:
}
// nothrow
void reserve(size_type s)
void reserve(size_type BOOST_GEOMETRY_INDEX_ASSERT_UNUSED_PARAM(s))
{
BOOST_ASSERT_MSG(s <= Capacity, "max capacity reached");
}

View File

@@ -274,7 +274,6 @@ struct def< counting_value<Indexable> >
bool equals(value_type const& v1, value_type const& v2) const
{
return boost::geometry::equals(v1.indexable, v2.indexable);
return false;
}
};