// io_ex2.cpp ----------------------------------------------------------// // Copyright 2010 Howard Hinnant // Copyright 2010 Vicente J. Botet Escriba // Distributed under the Boost Software License, Version 1.0. // See http://www.boost.org/LICENSE_1_0.txt /* This code was adapted by Vicente J. Botet Escriba from Hinnant's html documentation. Many thanks to Howard for making his code available under the Boost license. */ #include #include int main() { using namespace std; using namespace boost; cout << "ratio_string::prefix() = " << ratio_string::prefix() << '\n'; cout << "ratio_string::symbol() = " << ratio_string::symbol() << '\n'; cout << "ratio_string::prefix() = " << ratio_string::prefix() << '\n'; cout << "ratio_string::symbol() = " << ratio_string::symbol() << '\n'; cout << "ratio_string, char>::prefix() = " << ratio_string, char>::prefix() << '\n'; cout << "ratio_string, char>::symbol() = " << ratio_string, char>::symbol() << '\n'; return 0; }