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.

37 lines
933B

  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. namespace zyncarla {
  14. std::ostream& operator<< (std::ostream& os,
  15. const version_type& v)
  16. {
  17. return os << v.get_major() << '.'
  18. << v.get_minor() << '.'
  19. << v.get_revision();
  20. }
  21. static_assert(!(version_type(3,1,1) < version_type(1,3,3)),
  22. "version operator failed");
  23. static_assert(version_type(2,9,9) < version_type(3,4,3),
  24. "version operator failed");
  25. static_assert(!(version_type(2,4,3) < version_type(2,4,3)),
  26. "version operator failed");
  27. }