• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*=============================================================================
2     Copyright (c) 2014      John Fletcher
3 
4     Distributed under the Boost Software License, Version 1.0. (See accompanying
5     file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 ==============================================================================*/
7 
8 #include <boost/phoenix.hpp>
9 #include <vector>
10 
11 #include <boost/detail/lightweight_test.hpp>
12 
13 namespace phx = boost::phoenix;
14 
main()15 int main()
16 {
17     std::vector<int> v = phx::let(phx::local_names::_a = std::vector<int>(3))
18     [
19        phx::local_names::_a
20     ]
21     ();
22     BOOST_TEST( v.size() == 3);
23 }
24