1 2 // Copyright Oliver Kowalke 2016. 3 // Distributed under the Boost Software License, Version 1.0. 4 // (See accompanying file LICENSE_1_0.txt or copy at 5 // http://www.boost.org/LICENSE_1_0.txt) 6 7 #include <cstdlib> 8 #include <iostream> 9 10 #include <boost/context/continuation.hpp> 11 12 namespace ctx = boost::context; 13 main()14int main() { 15 std::cout << "minimum stack size: " << ctx::stack_traits::minimum_size() << " byte\n"; 16 std::cout << "default stack size: " << ctx::stack_traits::default_size() << " byte\n"; 17 std::cout << "maximum stack size: "; 18 if ( ctx::stack_traits::is_unbounded() ) { 19 std::cout << "unlimited\n"; 20 } else { 21 std::cout << ctx::stack_traits::maximum_size() << " byte\n"; 22 } 23 std::cout << "main: done" << std::endl; 24 return EXIT_SUCCESS; 25 } 26