|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r69151 - sandbox/conversion/boost/conversion
From: vicente.botet_at_[hidden]
Date: 2011-02-22 12:14:21
Author: viboes
Date: 2011-02-22 12:14:20 EST (Tue, 22 Feb 2011)
New Revision: 69151
URL: http://svn.boost.org/trac/boost/changeset/69151
Log:
Conversion:
Text files modified:
sandbox/conversion/boost/conversion/ca_wrapper.hpp | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
Modified: sandbox/conversion/boost/conversion/ca_wrapper.hpp
==============================================================================
--- sandbox/conversion/boost/conversion/ca_wrapper.hpp (original)
+++ sandbox/conversion/boost/conversion/ca_wrapper.hpp 2011-02-22 12:14:20 EST (Tue, 22 Feb 2011)
@@ -19,8 +19,8 @@
template <typename T>
class ca_wrapper {
- T& ref_;
public:
+ T& ref_;
ca_wrapper(ca_wrapper const& r) : ref_(r.ref_) { }
ca_wrapper(T& r) : ref_(r) {}
template <typename U>
@@ -28,6 +28,11 @@
return boost::convert_to<U>(ref_);
}
ca_wrapper& operator =(ca_wrapper<T> const& u) {
+ ref_ = u.ref_;
+ return *this;
+ }
+ template <typename U>
+ ca_wrapper& operator =(ca_wrapper<U> const& u) {
boost::assign_to(ref_, u.ref_);
return *this;
}
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk