Audio plugin host https://kx.studio/carla
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
908B

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