mirror of
https://github.com/boostorg/iterator.git
synced 2025-07-30 04:47:20 +02:00
Correct static_assert messages.
This commit is contained in:
@ -257,7 +257,7 @@ namespace iterators {
|
|||||||
{
|
{
|
||||||
static_assert(
|
static_assert(
|
||||||
std::is_convertible<my_traversal, random_access_traversal_tag>::value,
|
std::is_convertible<my_traversal, random_access_traversal_tag>::value,
|
||||||
"Super iterator must have a random_access_traversal_tag."
|
"Iterator must support random access traversal."
|
||||||
);
|
);
|
||||||
m_iterator += n;
|
m_iterator += n;
|
||||||
}
|
}
|
||||||
@ -268,7 +268,7 @@ namespace iterators {
|
|||||||
{
|
{
|
||||||
static_assert(
|
static_assert(
|
||||||
std::is_convertible<my_traversal, bidirectional_traversal_tag>::value,
|
std::is_convertible<my_traversal, bidirectional_traversal_tag>::value,
|
||||||
"Super iterator must have a bidirectional_traversal_tag."
|
"Iterator must support bidirectional traversal."
|
||||||
);
|
);
|
||||||
--m_iterator;
|
--m_iterator;
|
||||||
}
|
}
|
||||||
@ -281,7 +281,7 @@ namespace iterators {
|
|||||||
{
|
{
|
||||||
static_assert(
|
static_assert(
|
||||||
std::is_convertible<my_traversal, random_access_traversal_tag>::value,
|
std::is_convertible<my_traversal, random_access_traversal_tag>::value,
|
||||||
"Super iterator must have a random_access_traversal_tag."
|
"Super iterator must support random access traversal."
|
||||||
);
|
);
|
||||||
// Maybe readd with same_distance
|
// Maybe readd with same_distance
|
||||||
// BOOST_STATIC_ASSERT(
|
// BOOST_STATIC_ASSERT(
|
||||||
|
@ -324,7 +324,7 @@ struct iterator_access_archetype_impl<
|
|||||||
template <class Value>
|
template <class Value>
|
||||||
struct archetype
|
struct archetype
|
||||||
{
|
{
|
||||||
static_assert(!std::is_const<Value>::value, "Value type must be const.");
|
static_assert(!std::is_const<Value>::value, "Value type must not be const.");
|
||||||
typedef void value_type;
|
typedef void value_type;
|
||||||
typedef void reference;
|
typedef void reference;
|
||||||
typedef void pointer;
|
typedef void pointer;
|
||||||
@ -375,7 +375,7 @@ struct iterator_access_archetype_impl<archetypes::writable_lvalue_iterator_t>
|
|||||||
Value, archetypes::readable_lvalue_iterator_t
|
Value, archetypes::readable_lvalue_iterator_t
|
||||||
>
|
>
|
||||||
{
|
{
|
||||||
static_assert(!std::is_const<Value>::value, "Value type must be const.");
|
static_assert(!std::is_const<Value>::value, "Value type must not be const.");
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user