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:
parent
df46ab2c02
commit
8855b1643c
|
@ -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); }
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue
Block a user