// (C) Copyright 2008-2009 SDML (www.sdml.info) // // Use, modification and distribution is 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) #include #include using std::cout; using namespace origin; // A constructor that will always throw... struct will_throw { will_throw() { throw 1; } will_throw(int) { throw 2; } }; int main() { fixed_column_vector x(12); cout << x.size() << "\n"; try { fixed_column_vector c(40, 12); } catch(int x) { cout << "caught " << x << "\n"; } return 0; }