mirror of
https://github.com/boostorg/fusion.git
synced 2025-07-23 00:57:20 +02:00
Fusion: silenced a couple of MSVC warnings created during Spirit test runs
[SVN r57502]
This commit is contained in:
@ -95,6 +95,10 @@ namespace boost { namespace fusion
|
|||||||
return type();
|
return type();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
private:
|
||||||
|
// silence MSVC warning C4512: assignment operator could not be generated
|
||||||
|
struct_iterator& operator= (struct_iterator const&);
|
||||||
};
|
};
|
||||||
}}
|
}}
|
||||||
|
|
||||||
|
@ -34,11 +34,15 @@ namespace boost { namespace fusion
|
|||||||
typedef cons_iterator_identity<
|
typedef cons_iterator_identity<
|
||||||
typename add_const<Cons>::type>
|
typename add_const<Cons>::type>
|
||||||
identity;
|
identity;
|
||||||
|
|
||||||
explicit cons_iterator(cons_type& cons)
|
explicit cons_iterator(cons_type& cons)
|
||||||
: cons(cons) {}
|
: cons(cons) {}
|
||||||
|
|
||||||
cons_type& cons;
|
cons_type& cons;
|
||||||
|
|
||||||
|
private:
|
||||||
|
// silence MSVC warning C4512: assignment operator could not be generated
|
||||||
|
cons_iterator& operator= (cons_iterator const&);
|
||||||
};
|
};
|
||||||
|
|
||||||
struct nil_iterator : iterator_base<nil_iterator>
|
struct nil_iterator : iterator_base<nil_iterator>
|
||||||
|
@ -105,7 +105,7 @@
|
|||||||
BOOST_PP_CAT(vector, N)(
|
BOOST_PP_CAT(vector, N)(
|
||||||
Sequence const& seq
|
Sequence const& seq
|
||||||
#if (N == 1)
|
#if (N == 1)
|
||||||
, typename disable_if<is_convertible<Sequence, T0> >::type* dummy = 0
|
, typename disable_if<is_convertible<Sequence, T0> >::type* /*dummy*/ = 0
|
||||||
#endif
|
#endif
|
||||||
)
|
)
|
||||||
: base_type(base_type::init_from_sequence(seq)) {}
|
: base_type(base_type::init_from_sequence(seq)) {}
|
||||||
@ -133,14 +133,14 @@
|
|||||||
|
|
||||||
template<typename I>
|
template<typename I>
|
||||||
typename add_reference<typename mpl::at<types, I>::type>::type
|
typename add_reference<typename mpl::at<types, I>::type>::type
|
||||||
at_impl(I i)
|
at_impl(I)
|
||||||
{
|
{
|
||||||
return this->at_impl(mpl::int_<I::value>());
|
return this->at_impl(mpl::int_<I::value>());
|
||||||
}
|
}
|
||||||
|
|
||||||
template<typename I>
|
template<typename I>
|
||||||
typename add_reference<typename add_const<typename mpl::at<types, I>::type>::type>::type
|
typename add_reference<typename add_const<typename mpl::at<types, I>::type>::type>::type
|
||||||
at_impl(I i) const
|
at_impl(I) const
|
||||||
{
|
{
|
||||||
return this->at_impl(mpl::int_<I::value>());
|
return this->at_impl(mpl::int_<I::value>());
|
||||||
}
|
}
|
||||||
|
@ -35,7 +35,7 @@ namespace boost { namespace fusion { namespace detail
|
|||||||
|
|
||||||
template <typename IS>
|
template <typename IS>
|
||||||
static void
|
static void
|
||||||
read(IS& is, char const* delim, mpl::true_)
|
read(IS&, char const*, mpl::true_)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
@ -44,7 +44,7 @@ namespace boost { namespace fusion { namespace detail
|
|||||||
{
|
{
|
||||||
template <typename IS, typename First, typename Last>
|
template <typename IS, typename First, typename Last>
|
||||||
static void
|
static void
|
||||||
call(IS& is, First const&, Last const&, mpl::true_)
|
call(IS&, First const&, Last const&, mpl::true_)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -146,6 +146,10 @@ namespace boost { namespace fusion
|
|||||||
}
|
}
|
||||||
|
|
||||||
Stream& stream;
|
Stream& stream;
|
||||||
|
|
||||||
|
private:
|
||||||
|
// silence MSVC warning C4512: assignment operator could not be generated
|
||||||
|
string_ios_manip& operator= (string_ios_manip const&);
|
||||||
};
|
};
|
||||||
|
|
||||||
} // detail
|
} // detail
|
||||||
|
@ -35,7 +35,7 @@ namespace boost { namespace fusion { namespace detail
|
|||||||
|
|
||||||
template <typename OS>
|
template <typename OS>
|
||||||
static void
|
static void
|
||||||
print(OS& os, char const* delim, mpl::true_)
|
print(OS&, char const*, mpl::true_)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
@ -44,7 +44,7 @@ namespace boost { namespace fusion { namespace detail
|
|||||||
{
|
{
|
||||||
template <typename OS, typename First, typename Last>
|
template <typename OS, typename First, typename Last>
|
||||||
static void
|
static void
|
||||||
call(OS& os, First const&, Last const&, mpl::true_)
|
call(OS&, First const&, Last const&, mpl::true_)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -53,6 +53,10 @@ namespace boost { namespace fusion
|
|||||||
first_type first() const { return fusion::begin(seq); }
|
first_type first() const { return fusion::begin(seq); }
|
||||||
last_type last() const { return fusion::end(seq); }
|
last_type last() const { return fusion::end(seq); }
|
||||||
typename mpl::if_<traits::is_view<Sequence>, Sequence, Sequence&>::type seq;
|
typename mpl::if_<traits::is_view<Sequence>, Sequence, Sequence&>::type seq;
|
||||||
|
|
||||||
|
private:
|
||||||
|
// silence MSVC warning C4512: assignment operator could not be generated
|
||||||
|
filter_view& operator= (filter_view const&);
|
||||||
};
|
};
|
||||||
}}
|
}}
|
||||||
|
|
||||||
|
@ -45,6 +45,10 @@ namespace boost { namespace fusion
|
|||||||
: seq(seq) {}
|
: seq(seq) {}
|
||||||
|
|
||||||
Sequence& seq;
|
Sequence& seq;
|
||||||
|
|
||||||
|
private:
|
||||||
|
// silence MSVC warning C4512: assignment operator could not be generated
|
||||||
|
nview_iterator& operator= (nview_iterator const&);
|
||||||
};
|
};
|
||||||
|
|
||||||
}}
|
}}
|
||||||
|
@ -99,6 +99,10 @@ namespace boost { namespace fusion
|
|||||||
last_type last() const { return fusion::end(seq); }
|
last_type last() const { return fusion::end(seq); }
|
||||||
typename mpl::if_<traits::is_view<Sequence>, Sequence, Sequence&>::type seq;
|
typename mpl::if_<traits::is_view<Sequence>, Sequence, Sequence&>::type seq;
|
||||||
transform_type f;
|
transform_type f;
|
||||||
|
|
||||||
|
private:
|
||||||
|
// silence MSVC warning C4512: assignment operator could not be generated
|
||||||
|
transform_view& operator= (transform_view const&);
|
||||||
};
|
};
|
||||||
}}
|
}}
|
||||||
|
|
||||||
|
@ -39,6 +39,10 @@ namespace boost { namespace fusion
|
|||||||
|
|
||||||
first_type first;
|
first_type first;
|
||||||
transform_type f;
|
transform_type f;
|
||||||
|
|
||||||
|
private:
|
||||||
|
// silence MSVC warning C4512: assignment operator could not be generated
|
||||||
|
transform_view_iterator& operator= (transform_view_iterator const&);
|
||||||
};
|
};
|
||||||
|
|
||||||
// Binary Version
|
// Binary Version
|
||||||
@ -62,6 +66,10 @@ namespace boost { namespace fusion
|
|||||||
first1_type first1;
|
first1_type first1;
|
||||||
first2_type first2;
|
first2_type first2;
|
||||||
transform_type f;
|
transform_type f;
|
||||||
|
|
||||||
|
private:
|
||||||
|
// silence MSVC warning C4512: assignment operator could not be generated
|
||||||
|
transform_view_iterator2& operator= (transform_view_iterator2 const&);
|
||||||
};
|
};
|
||||||
}}
|
}}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user