diff -r 000000000000 -r e4d67989cc36 stdcpp/tsrc/Boost_test/graph/src/copy.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/stdcpp/tsrc/Boost_test/graph/src/copy.cpp Tue Feb 02 02:01:42 2010 +0200 @@ -0,0 +1,51 @@ +// Copyright (C) Vladimir Prus 2003. +// Distributed under 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) +/* + * © Portions copyright (c) 2006-2007 Nokia Corporation. All rights reserved. +*/ + +#include +#include +#ifdef __SYMBIAN32__ +#include "std_log_result.h" +#define LOG_FILENAME_LINE __FILE__, __LINE__ +#endif + +int failed_tests = 0; +using namespace boost; + +class copier { +public: + template + void operator()(const V1&, const V2&) const {} +}; + +int main() +{ + adjacency_list > g1, g2; + adjacency_list > g3; + + copy_graph(g1, g2); + copier c; + copy_graph(g3, g1, vertex_copy(c)); +#ifdef __SYMBIAN32__ + if(failed_tests) + { + std_log(LOG_FILENAME_LINE,"Result : Failed"); + assert_failed = true; + } + else + { + std_log(LOG_FILENAME_LINE,"Result : Passed"); + } + std_log(LOG_FILENAME_LINE,"[End Test Case ]"); +#endif +#ifdef __SYMBIAN32__ + testResultXml("copy"); + close_log_file(); +#endif + +return failed_tests; +}