Subject: [Boost-bugs] [Boost C++ Libraries] #4409: boost::in_place_factory produces warning
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-07-08 09:38:05
#4409: boost::in_place_factory produces warning
------------------------------+---------------------------------------------
Reporter: NN | Owner:
Type: Feature Requests | Status: new
Milestone: Boost 1.44.0 | Component: None
Version: Boost 1.44.0 | Severity: Cosmetic
Keywords: |
------------------------------+---------------------------------------------
Visual C++ 9.0, Warning level 4
{{{
#!cpp
#include <boost/utility/in_place_factory.hpp>
#include <boost/optional.hpp>
#include <boost/noncopyable.hpp>
struct x : boost::noncopyable
{
public:
static void init(int i);
private:
x(int i) : i (i)
{
}
friend boost::in_place_factory1<int>;
int i;
};
boost::optional<x> x_instance;
void x::init(int i)
{
x_instance = boost::in_place(i);
}
}}}
{{{
1>boost\utility\in_place_factory.hpp(68): warning C4512:
'boost::in_place_factory1<A0>' : assignment operator could not be
generated
1> with
1> [
1> A0=int
1> ]
1> a.cpp(26) : see reference to class template instantiation
'boost::in_place_factory1<A0>' being compiled
1> with
1> [
1> A0=int
1> ]
}}}
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/4409> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:03 UTC