swizzle_const_fail.cpp 460 B

123456789101112131415161718
  1. //Copyright (c) 2008-2016 Emil Dotchevski and Reverge Studios, Inc.
  2. //Distributed under the Boost Software License, Version 1.0. (See accompanying
  3. //file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  4. #include <boost/qvm/vec.hpp>
  5. #include <boost/qvm/vec_operations.hpp>
  6. #include <boost/qvm/swizzle2.hpp>
  7. int
  8. main()
  9. {
  10. using namespace boost::qvm;
  11. vec<float,2> v;
  12. vec<float,2> const & cv=v;
  13. XY(cv)*=2;
  14. return 1;
  15. }