|
Boost Users : |
Subject: [Boost-users] [interprocess::offset_ptr] operator>> error in boost_1_46_1
From: ÇÇ־ǿ (qiaozhiqiang_at_[hidden])
Date: 2012-03-01 20:12:36
#include <boost/interprocess/offset_ptr.hpp>
I use boost_1_46_1,
boost::interprocess::offset_ptr<int> p;
std::cin >> p; // error!!
offset_ptr.hpp
std::ptrdiff_t get_offset() const
{ return internal.m_offset; }
//!operator>>
//!for offset ptr
template<class E, class T, class Y>
inline std::basic_istream<E, T> & operator>>
(std::basic_istream<E, T> & is, offset_ptr<Y> & p)
{ return is >> p.get_offset(); }
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net