2 ZynAddSubFX - a software synthesizer
4 version.cpp - implementation of version_type class
5 Copyright (C) 2016 Johannes Lorenz
6 Author: Johannes Lorenz
8 This program is free software; you can redistribute it and/or
9 modify it under the terms of the GNU General Public License
10 as published by the Free Software Foundation; either version 2
11 of the License, or (at your option) any later version.
16 #include "zyn-version.h"
20 std::ostream
& operator<< (std::ostream
& os
,
21 const version_type
& v
)
23 return os
<< v
.get_major() << '.'
24 << v
.get_minor() << '.'
28 static_assert(!(version_type(3,1,1) < version_type(1,3,3)),
29 "version operator failed");
30 static_assert(version_type(2,9,9) < version_type(3,4,3),
31 "version operator failed");
32 static_assert(!(version_type(2,4,3) < version_type(2,4,3)),
33 "version operator failed");