Is there something wrong with this code?
#include <boost/shared_ptr.hpp>
int main()
{
boost::shared_p tr<double> g(new double);
boost::shared_p tr<double> f(new double);
f = boost::shared_p tr<double>(g.ge t());
return 0;
}
I get a run-time memory error when I compile it with gcc. Did I do
something wrong?
#include <boost/shared_ptr.hpp>
int main()
{
boost::shared_p tr<double> g(new double);
boost::shared_p tr<double> f(new double);
f = boost::shared_p tr<double>(g.ge t());
return 0;
}
I get a run-time memory error when I compile it with gcc. Did I do
something wrong?
Comment