/* * $Rev: 5266 $ * Author: Jesse Perla (c) 2010 * Use, modification and distribution are subject to the * Boost Software License, Version 1.0. (See accompanying file * LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) */ #define BOOST_TEST_MODULE test_boost_vector_constructors_patch #include #include using namespace boost::numeric::ublas; BOOST_AUTO_TEST_CASE( test_bounded_vector_cast_from_int ) { bounded_vector v; //v = 2; //This SHOULDN'T compile if the patch is correct. } BOOST_AUTO_TEST_CASE( test_bounded_vector_construct_assign ) { bounded_vector v(2, 3); BOOST_REQUIRE_EQUAL(v(0), 3); BOOST_REQUIRE_EQUAL(v(1), 3); }