Update of /cvsroot/boost/boost/libs/utility/test
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv26036
Modified Files:
Tag: RC_1_34_0
Jamfile.v2
Added Files:
Tag: RC_1_34_0
none_test.cpp
Log Message:
Testsuite for none_t added.
--- NEW FILE: none_test.cpp ---
// Copyright 2007 Fernando Luis Cacciola Carballal. Use, modification, and
distribution
// are subject to the Boost Software License, Version 1.0. (See
// accompanying file LICENSE_1_0.txt or a copy at
// http://www.boost.org/LICENSE_1_0.txt.)
// See http://www.boost.org/libs/utility for documentation.
// Boost test program for noost::none_t and boost::none
// Test strategy contributed by Richard Smith
#include <boost/optional/optional.hpp> // Test none.hpp is included with
<optional.hpp>
// Left undefined to cause a linker error if this overload is incorrectly
selected.
void verify_no_implicit_conversion_to_int ( int i ) ;
void verify_no_implicit_conversion_to_int ( boost::optional<int> const& ) {}
int main()
{
verify_no_implicit_conversion_to_int( boost::none );
}
Index: Jamfile.v2
===================================================================
RCS file: /cvsroot/boost/boost/libs/utility/test/Jamfile.v2,v
retrieving revision 1.14.4.1
retrieving revision 1.14.4.2
diff -u -d -r1.14.4.1 -r1.14.4.2
--- Jamfile.v2 10 Nov 2006 19:59:52 -0000 1.14.4.1
+++ Jamfile.v2 12 Apr 2007 14:32:38 -0000 1.14.4.2
@@ -33,4 +33,5 @@
[ compile-fail ../value_init_test_fail1.cpp ]
[ compile-fail ../value_init_test_fail2.cpp ]
[ compile-fail ../value_init_test_fail3.cpp ]
+ [ run none_test.cpp ]
;
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Boost-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/boost-cvs