1 2 // Copyright 2017 Peter Dimov. 3 // 4 // Distributed under the Boost Software License, Version 1.0. 5 // 6 // See accompanying file LICENSE_1_0.txt or copy at 7 // http://www.boost.org/LICENSE_1_0.txt 8 9 // See library home page at http://www.boost.org/libs/filesystem 10 11 #include <boost/filesystem.hpp> 12 #include <boost/core/lightweight_test.hpp> 13 14 namespace fs = boost::filesystem; 15 main()16int main() 17 { 18 fs::path p1( "a" ); 19 fs::path p2 = p1 / "b"; 20 21 BOOST_TEST_EQ( p2, "a/b" ); 22 23 return boost::report_errors(); 24 } 25