13
0

more gcc 4.6/standards compliance

git-svn-id: svn://localhost/ardour2/branches/3.0@9625 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Paul Davis 2011-05-29 00:25:30 +00:00
parent df46ab2c02
commit 8855b1643c

View File

@ -55,6 +55,8 @@ protected:
/** A stub TimeConverter that simple statically casts between types. */
template<typename A, typename B>
class IdentityConverter : public TimeConverter<A,B> {
public:
IdentityConverter() {}
B to(A a) const { return static_cast<B>(a); }
A from(B b) const { return static_cast<A>(b); }
};