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

source code of boost/libs/qvm/test/swizzle_const_fail.cpp