1 /*
2   ZynAddSubFX - a software synthesizer
3 
4   version.cpp - implementation of version_type class
5   Copyright (C) 2016 Johannes Lorenz
6   Author: Johannes Lorenz
7 
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.
12 */
13 
14 #include <iostream>
15 
16 #include "zyn-version.h"
17 
18 namespace zyn {
19 
operator <<(std::ostream & os,const version_type & v)20 std::ostream& operator<< (std::ostream& os,
21     const version_type& v)
22 {
23     return os << v.get_major() << '.'
24         << v.get_minor() << '.'
25         << v.get_revision();
26 }
27 
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");
34 
35 }
36 
37