mirror of
https://github.com/boostorg/fusion.git
synced 2025-07-24 17:47:15 +02:00
Fusion: silenced a couple of MSVC warnings created during Spirit test runs
[SVN r57502]
This commit is contained in:
@ -34,11 +34,15 @@ namespace boost { namespace fusion
|
||||
typedef cons_iterator_identity<
|
||||
typename add_const<Cons>::type>
|
||||
identity;
|
||||
|
||||
|
||||
explicit cons_iterator(cons_type& cons)
|
||||
: cons(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>
|
||||
|
@ -105,7 +105,7 @@
|
||||
BOOST_PP_CAT(vector, N)(
|
||||
Sequence const& seq
|
||||
#if (N == 1)
|
||||
, typename disable_if<is_convertible<Sequence, T0> >::type* dummy = 0
|
||||
, typename disable_if<is_convertible<Sequence, T0> >::type* /*dummy*/ = 0
|
||||
#endif
|
||||
)
|
||||
: base_type(base_type::init_from_sequence(seq)) {}
|
||||
@ -133,14 +133,14 @@
|
||||
|
||||
template<typename I>
|
||||
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>());
|
||||
}
|
||||
|
||||
template<typename I>
|
||||
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>());
|
||||
}
|
||||
|
Reference in New Issue
Block a user