|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r78546 - in trunk: boost/local_function/detail/preprocessor/keyword/facility libs/local_function/test
From: lorcaminiti_at_[hidden]
Date: 2012-05-22 22:59:17
Author: lcaminiti
Date: 2012-05-22 22:59:15 EDT (Tue, 22 May 2012)
New Revision: 78546
URL: http://svn.boost.org/trac/boost/changeset/78546
Log:
Removed test for compilers that support local types as template params.
Removed:
trunk/libs/local_function/test/locals_as_tparams.cpp
Text files modified:
trunk/boost/local_function/detail/preprocessor/keyword/facility/add.hpp | 4 ++--
trunk/libs/local_function/test/Jamfile.v2 | 1 -
2 files changed, 2 insertions(+), 3 deletions(-)
Modified: trunk/boost/local_function/detail/preprocessor/keyword/facility/add.hpp
==============================================================================
--- trunk/boost/local_function/detail/preprocessor/keyword/facility/add.hpp (original)
+++ trunk/boost/local_function/detail/preprocessor/keyword/facility/add.hpp 2012-05-22 22:59:15 EDT (Tue, 22 May 2012)
@@ -12,12 +12,12 @@
#include <boost/preprocessor/logical/compl.hpp>
// `is_front_macro(tokens)` is 1 if `tokens` start w/ `keyword` to add, else 0.
-#define BOOST_CLOURE_DETAIL_PP_KEYWORD_FACILITY_ADD_FRONT( \
+#define BOOST_LOCAL_FUNCTION_DETAIL_PP_KEYWORD_FACILITY_ADD_FRONT( \
tokens, is_front_macro, keyword) \
BOOST_PP_EXPR_IIF(BOOST_PP_COMPL(is_front_macro(tokens)), keyword) tokens
// `is_back_macro(tokens)` is 1 if `tokens` end with `keyword` to add, else 0.
-#define BOOST_CLOURE_DETAIL_PP_KEYWORD_FACILITY_ADD_BACK( \
+#define BOOST_LOCAL_FUNCTION_DETAIL_PP_KEYWORD_FACILITY_ADD_BACK( \
tokens, is_back_macro, keyword) \
tokens BOOST_PP_EXPR_IIF(BOOST_PP_COMPL(is_back_macro(tokens)), keyword)
Modified: trunk/libs/local_function/test/Jamfile.v2
==============================================================================
--- trunk/libs/local_function/test/Jamfile.v2 (original)
+++ trunk/libs/local_function/test/Jamfile.v2 2012-05-22 22:59:15 EDT (Tue, 22 May 2012)
@@ -31,7 +31,6 @@
vaseq run factorial ;
vaseq run goto ;
vaseq compile-fail goto_error ;
-run locals_as_tparams.cpp ;
vaseq run macro_commas ;
vaseq run nesting ;
vaseq run operator ;
Deleted: trunk/libs/local_function/test/locals_as_tparams.cpp
==============================================================================
--- trunk/libs/local_function/test/locals_as_tparams.cpp 2012-05-22 22:59:15 EDT (Tue, 22 May 2012)
+++ (empty file)
@@ -1,36 +0,0 @@
-
-// Copyright (C) 2009-2012 Lorenzo Caminiti
-// Distributed under 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)
-// Home at http://www.boost.org/libs/local_function
-
-#include <boost/local_function.hpp>
-
-// This test make sure that compilers for which local classes are expected to
-// be valid template parameters indeed support such functionality.
-// This feature is enabled by both BOOST_LOCAL_FUNCTION_CONFIG_LOCALS_AS_TPARAMS
-// and Boost.Config's BOOST_NO_LOCAL_CLASS_TEMPLATE_PARAMETERS. When supported,
-// this feature is used to speed-up local function calls. This feature is
-// supported by all standard C++11 compilers and some C++03 compilers as an
-// extension (but not by the C++03 standard).
-#if BOOST_LOCAL_FUNCTION_CONFIG_LOCALS_AS_TPARAMS
-# define LOCALS_AS_TPARAMS_TFUNC call_expected_to_pass
-# define LOCALS_AS_TPARAMS_TCLASS instantiation_expected_to_pass
-# define LOCALS_AS_TPARAMS_EXIT_CODE 0 // Pass.
-#else
-# define LOCALS_AS_TPARAMS_TFUNC call_exptected_to_fail
-# define LOCALS_AS_TPARAMS_TCLASS instantiation_expected_to_fail
-# define LOCALS_AS_TPARAMS_EXIT_CODE 1 // Fails.
-#endif
-
-template<typename T> struct LOCALS_AS_TPARAMS_TCLASS { void use(void) {} };
-template<typename T> void LOCALS_AS_TPARAMS_TFUNC(T) {}
-
-int main(void) {
- struct local_class {} local_obj;
- LOCALS_AS_TPARAMS_TCLASS<local_class>().use();
- LOCALS_AS_TPARAMS_TFUNC(local_obj);
- return LOCALS_AS_TPARAMS_EXIT_CODE;
-}
-
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk