diff --git a/ChangeLog b/ChangeLog index f9bdc8f25..e125d2da3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2008-04-02 Tobias Doerffel + + * include/automatable_model.h: + added castValue()-method + 2008-04-01 Tobias Doerffel * plugins/ladspa_effect/Makefile.am: diff --git a/include/automatable_model.h b/include/automatable_model.h index 86d1d11b4..44b1b5931 100644 --- a/include/automatable_model.h +++ b/include/automatable_model.h @@ -96,6 +96,11 @@ public: return( 1 ); } + template + static inline T castValue( V _v ) + { + return( static_cast( _v ) ); + } inline virtual T value( void ) const {