~hikiko/nux/nuxtex

« back to all changes in this revision

Viewing changes to NuxCore/Object.h

  • Committer: Tarmac
  • Author(s): Michi Henning
  • Date: 2012-09-24 09:22:28 UTC
  • mfrom: (661.2.1 nux4)
  • Revision ID: tarmac-20120924092228-yy2u9dlbkdlqtjam
Eliminated a whole bunch of compiler warnings reported by -Wextra.. Fixes: https://bugs.launchpad.net/bugs/1032313. Approved by Tim Penhey.

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
 
29
29
#include <sigc++/trackable.h>
30
30
#include <sigc++/signal.h>
 
31
#include <boost/utility.hpp>
31
32
#include "ObjectType.h"
32
33
#include "Property.h"
33
34
#include "PropertyTraits.h"
65
66
      Trackable does not implement reference counting. It only defines the API. It is up
66
67
      to the class that inherit from Trackable to implement the reference counting.
67
68
  */
68
 
  class Trackable: public nux::Introspectable, public sigc::trackable
 
69
  class Trackable: public nux::Introspectable, public sigc::trackable, public boost::noncopyable
69
70
  {
70
71
  public:
71
72
    NUX_DECLARE_ROOT_OBJECT_TYPE (Trackable);
160
161
    int _heap_allocated;
161
162
 
162
163
  private:
163
 
    // Trackable objects are not copyable.
164
 
    Trackable (const Trackable &);
165
 
    Trackable &operator= (const Trackable &);
166
 
 
167
164
    static std::new_handler _new_current_handler;
168
165
 
169
166
    bool _owns_the_reference;