bug5875.cpp 664 B

1234567891011121314151617181920212223
  1. /*=============================================================================
  2. Copyright (c) 2014 John Fletcher
  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/phoenix.hpp>
  7. #include <vector>
  8. #include <boost/detail/lightweight_test.hpp>
  9. namespace phx = boost::phoenix;
  10. int main()
  11. {
  12. std::vector<int> v = phx::let(phx::local_names::_a = std::vector<int>(3))
  13. [
  14. phx::local_names::_a
  15. ]
  16. ();
  17. BOOST_TEST( v.size() == 3);
  18. }