mirror of
https://github.com/boostorg/config.git
synced 2026-05-05 04:14:12 +02:00
Added new macro BOOST_NO_TEMPLATED_IOSTREAMS in response to issue #1765.
[SVN r44689]
This commit is contained in:
+4
-1
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# Regression test Jamfile for boost configuration setup.
|
||||
# *** DO NOT EDIT THIS FILE BY HAND ***
|
||||
# This file was automatically generated on Mon Apr 14 17:10:09 2008
|
||||
# This file was automatically generated on Mon Apr 21 10:10:52 2008
|
||||
# by libs/config/tools/generate.cpp
|
||||
# Copyright John Maddock.
|
||||
# Use, modification and distribution are subject to the
|
||||
@@ -337,6 +337,9 @@ test-suite "BOOST_NO_STD_WSTRING" :
|
||||
test-suite "BOOST_NO_SWPRINTF" :
|
||||
[ run ../no_swprintf_pass.cpp ]
|
||||
[ compile-fail ../no_swprintf_fail.cpp ] ;
|
||||
test-suite "BOOST_NO_TEMPLATED_IOSTREAMS" :
|
||||
[ run ../no_template_streams_pass.cpp ]
|
||||
[ compile-fail ../no_template_streams_fail.cpp ] ;
|
||||
test-suite "BOOST_NO_TEMPLATE_TEMPLATES" :
|
||||
[ run ../no_template_template_pass.cpp ]
|
||||
[ compile-fail ../no_template_template_fail.cpp ] ;
|
||||
|
||||
@@ -0,0 +1,28 @@
|
||||
// (C) Copyright John Maddock 2008.
|
||||
// Use, modification and distribution are subject to 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)
|
||||
|
||||
// See http://www.boost.org/libs/config for most recent version.
|
||||
|
||||
// MACRO: BOOST_NO_TEMPLATED_IOSTREAMS
|
||||
// TITLE: basic_iostream<>
|
||||
// DESCRIPTION: The platform supports "new style" templated iostreams.
|
||||
|
||||
#include <iostream>
|
||||
|
||||
|
||||
namespace boost_no_templated_iostreams{
|
||||
|
||||
int test()
|
||||
{
|
||||
std::basic_ostream<char, std::char_traits<char> >& osr = std::cout;
|
||||
return 0;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1002,6 +1002,7 @@ void print_boost_macros()
|
||||
PRINT_MACRO(BOOST_NO_STD_WSTRING);
|
||||
PRINT_MACRO(BOOST_NO_STRINGSTREAM);
|
||||
PRINT_MACRO(BOOST_NO_SWPRINTF);
|
||||
PRINT_MACRO(BOOST_NO_TEMPLATED_IOSTREAMS);
|
||||
PRINT_MACRO(BOOST_NO_TEMPLATED_ITERATOR_CONSTRUCTORS);
|
||||
PRINT_MACRO(BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION);
|
||||
PRINT_MACRO(BOOST_NO_TEMPLATE_TEMPLATES);
|
||||
@@ -1028,6 +1029,7 @@ void print_boost_macros()
|
||||
|
||||
|
||||
|
||||
|
||||
// END GENERATED BLOCK
|
||||
|
||||
PRINT_MACRO(BOOST_INTEL);
|
||||
|
||||
+11
-1
@@ -1,4 +1,4 @@
|
||||
// This file was automatically generated on Mon Apr 14 17:10:09 2008
|
||||
// This file was automatically generated on Mon Apr 21 10:10:52 2008
|
||||
// by libs/config/tools/generate.cpp
|
||||
// Copyright John Maddock 2002-4.
|
||||
// Use, modification and distribution are subject to the
|
||||
@@ -292,6 +292,11 @@ namespace boost_no_std_wstring = empty_boost;
|
||||
#else
|
||||
namespace boost_no_swprintf = empty_boost;
|
||||
#endif
|
||||
#ifndef BOOST_NO_TEMPLATED_IOSTREAMS
|
||||
#include "boost_no_template_streams.ipp"
|
||||
#else
|
||||
namespace boost_no_templated_iostreams = empty_boost;
|
||||
#endif
|
||||
#ifndef BOOST_NO_TEMPLATE_TEMPLATES
|
||||
#include "boost_no_template_template.ipp"
|
||||
#else
|
||||
@@ -1116,6 +1121,11 @@ int main( int, char *[] )
|
||||
std::cerr << "Failed test for BOOST_NO_SWPRINTF at: " << __FILE__ << ":" << __LINE__ << std::endl;
|
||||
++error_count;
|
||||
}
|
||||
if(0 != boost_no_templated_iostreams::test())
|
||||
{
|
||||
std::cerr << "Failed test for BOOST_NO_TEMPLATED_IOSTREAMS at: " << __FILE__ << ":" << __LINE__ << std::endl;
|
||||
++error_count;
|
||||
}
|
||||
if(0 != boost_no_template_templates::test())
|
||||
{
|
||||
std::cerr << "Failed test for BOOST_NO_TEMPLATE_TEMPLATES at: " << __FILE__ << ":" << __LINE__ << std::endl;
|
||||
|
||||
@@ -0,0 +1,37 @@
|
||||
// This file was automatically generated on Mon Apr 21 10:10:52 2008
|
||||
// by libs/config/tools/generate.cpp
|
||||
// Copyright John Maddock 2002-4.
|
||||
// Use, modification and distribution are subject to 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)
|
||||
|
||||
// See http://www.boost.org/libs/config for the most recent version.//
|
||||
// Revision $Id: generate.cpp 44422 2008-04-14 18:06:59Z johnmaddock $
|
||||
//
|
||||
|
||||
|
||||
// Test file for macro BOOST_NO_TEMPLATED_IOSTREAMS
|
||||
// This file should not compile, if it does then
|
||||
// BOOST_NO_TEMPLATED_IOSTREAMS should not be defined.
|
||||
// See file boost_no_template_streams.ipp for details
|
||||
|
||||
// Must not have BOOST_ASSERT_CONFIG set; it defeats
|
||||
// the objective of this file:
|
||||
#ifdef BOOST_ASSERT_CONFIG
|
||||
# undef BOOST_ASSERT_CONFIG
|
||||
#endif
|
||||
|
||||
#include <boost/config.hpp>
|
||||
#include "test.hpp"
|
||||
|
||||
#ifdef BOOST_NO_TEMPLATED_IOSTREAMS
|
||||
#include "boost_no_template_streams.ipp"
|
||||
#else
|
||||
#error "this file should not compile"
|
||||
#endif
|
||||
|
||||
int main( int, char *[] )
|
||||
{
|
||||
return boost_no_templated_iostreams::test();
|
||||
}
|
||||
|
||||
@@ -0,0 +1,37 @@
|
||||
// This file was automatically generated on Mon Apr 21 10:10:52 2008
|
||||
// by libs/config/tools/generate.cpp
|
||||
// Copyright John Maddock 2002-4.
|
||||
// Use, modification and distribution are subject to 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)
|
||||
|
||||
// See http://www.boost.org/libs/config for the most recent version.//
|
||||
// Revision $Id: generate.cpp 44422 2008-04-14 18:06:59Z johnmaddock $
|
||||
//
|
||||
|
||||
|
||||
// Test file for macro BOOST_NO_TEMPLATED_IOSTREAMS
|
||||
// This file should compile, if it does not then
|
||||
// BOOST_NO_TEMPLATED_IOSTREAMS should be defined.
|
||||
// See file boost_no_template_streams.ipp for details
|
||||
|
||||
// Must not have BOOST_ASSERT_CONFIG set; it defeats
|
||||
// the objective of this file:
|
||||
#ifdef BOOST_ASSERT_CONFIG
|
||||
# undef BOOST_ASSERT_CONFIG
|
||||
#endif
|
||||
|
||||
#include <boost/config.hpp>
|
||||
#include "test.hpp"
|
||||
|
||||
#ifndef BOOST_NO_TEMPLATED_IOSTREAMS
|
||||
#include "boost_no_template_streams.ipp"
|
||||
#else
|
||||
namespace boost_no_templated_iostreams = empty_boost;
|
||||
#endif
|
||||
|
||||
int main( int, char *[] )
|
||||
{
|
||||
return boost_no_templated_iostreams::test();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user