Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r49092 - sandbox/guigl/boost/guigl/view
From: stipe_at_[hidden]
Date: 2008-10-01 14:25:28


Author: srajko
Date: 2008-10-01 14:25:27 EDT (Wed, 01 Oct 2008)
New Revision: 49092
URL: http://svn.boost.org/trac/boost/changeset/49092

Log:
more CopyConstructable fixes
Text files modified:
   sandbox/guigl/boost/guigl/view/navigable.hpp | 5 +++++
   sandbox/guigl/boost/guigl/view/periodic.hpp | 4 ++++
   sandbox/guigl/boost/guigl/view/static_compound.hpp | 6 ++++++
   sandbox/guigl/boost/guigl/view/window.hpp | 4 ++++
   4 files changed, 19 insertions(+), 0 deletions(-)

Modified: sandbox/guigl/boost/guigl/view/navigable.hpp
==============================================================================
--- sandbox/guigl/boost/guigl/view/navigable.hpp (original)
+++ sandbox/guigl/boost/guigl/view/navigable.hpp 2008-10-01 14:25:27 EDT (Wed, 01 Oct 2008)
@@ -27,6 +27,11 @@
         , m_angle(0,0)
         , m_distance(500)
     {}
+ navigable(const navigable &rhs)
+ : base_type(static_cast<const base_type &)(rhs))
+ , m_angle(rhs.m_angle)
+ , m_distance(rhs.m_distance)
+ {}
 
     double distance() const
     { return m_distance; }

Modified: sandbox/guigl/boost/guigl/view/periodic.hpp
==============================================================================
--- sandbox/guigl/boost/guigl/view/periodic.hpp (original)
+++ sandbox/guigl/boost/guigl/view/periodic.hpp 2008-10-01 14:25:27 EDT (Wed, 01 Oct 2008)
@@ -29,6 +29,10 @@
         if(args[_period]>0)
             enable(args[_period]);
     }
+ periodic(const periodic &rhs)
+ : base_type(static_cast<const base_type &>(rhs))
+ , m_enabled(false)
+ {}
     
     void enable(double seconds)
     {

Modified: sandbox/guigl/boost/guigl/view/static_compound.hpp
==============================================================================
--- sandbox/guigl/boost/guigl/view/static_compound.hpp (original)
+++ sandbox/guigl/boost/guigl/view/static_compound.hpp 2008-10-01 14:25:27 EDT (Wed, 01 Oct 2008)
@@ -54,6 +54,12 @@
     {
         detail::for_each(m_children, detail::set_parent<static_compound>(*this));
     }
+ static_compound(const static_compound &rhs)
+ : base_type(static_cast<const base_type &>(rhs))
+ , m_children(rhs.m_children)
+ , m_mouse_focus_child(0)
+ , m_button_focus_child(0)
+ {}
     
     bool on_event(const event_type &event_info);
 

Modified: sandbox/guigl/boost/guigl/view/window.hpp
==============================================================================
--- sandbox/guigl/boost/guigl/view/window.hpp (original)
+++ sandbox/guigl/boost/guigl/view/window.hpp 2008-10-01 14:25:27 EDT (Wed, 01 Oct 2008)
@@ -24,6 +24,10 @@
         : base_type(args)
         , m_background_color(args[_background])
     {}
+ window(const window &rhs)
+ : base_type(static_cast<const base_type &>(rhs))
+ , m_background_color(rhs.m_background_color)
+ {}
     
     const color_type &background_color() const
     { return m_background_color; }


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