diff options
author | David Robillard <d@drobilla.net> | 2009-02-22 17:37:33 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2009-02-22 17:37:33 +0000 |
commit | 5b04ddf424a657dbaa421cce13df4d6dac7fc622 (patch) | |
tree | 7beaaaefde9879033e17cf19679b7ac035c5212b /libs/pbd/pbd/command.h | |
parent | df4e6f2341040f37c1da58576eae4f9d0e55f80c (diff) |
Make commands noncopyable (they are definitely not copy safe).
memento_command.h style.
git-svn-id: svn://localhost/ardour2/branches/3.0@4648 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/pbd/pbd/command.h')
-rw-r--r-- | libs/pbd/pbd/command.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libs/pbd/pbd/command.h b/libs/pbd/pbd/command.h index 3fac531591..1521a60350 100644 --- a/libs/pbd/pbd/command.h +++ b/libs/pbd/pbd/command.h @@ -22,8 +22,9 @@ #define __lib_pbd_command_h__ #include <pbd/statefuldestructible.h> +#include <boost/utility.hpp> -class Command : public PBD::StatefulDestructible +class Command : public PBD::StatefulDestructible, public boost::noncopyable { public: virtual ~Command() { /* NOTE: derived classes must call drop_references() */ } |