diff --git a/dune/stuff/test/common_tuple.cc b/dune/stuff/test/common_tuple.cc index 95a92a954e0875efdccb687200a711963c483030..e67c8e7676ccb9626b4e1781cfc452adfa730977 100644 --- a/dune/stuff/test/common_tuple.cc +++ b/dune/stuff/test/common_tuple.cc @@ -28,10 +28,16 @@ typedef Dune::tuple<A, B, B> MyTuple; struct print_value { + template <class U, class V> + static void run(std::ostream& out) + { + out << "(" << U::value << "," << V::value << ")" << std::endl; + } + template <class U, class V> static void run() { - std::cout << "(" << U::value << "," << V::value << ")" << std::endl; + run<U, V>(std::cout); } }; @@ -47,4 +53,5 @@ TEST(Product, All) typedef boost::mpl::vector<Int<3>, Int<4>> v_types; typedef Combine<u_types, v_types, print_value>::Generate<> base_generator_type; base_generator_type::Run(); + base_generator_type::Run(std::cerr); }