mirror of
https://github.com/boostorg/config.git
synced 2025-08-02 13:54:27 +02:00
Added new macro BOOST_NO_TEMPLATED_IOSTREAMS in response to issue #1765.
[SVN r44689]
This commit is contained in:
@@ -1027,6 +1027,23 @@
|
|||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
|
<td>
|
||||||
|
<p>
|
||||||
|
<code class="computeroutput"><span class="identifier">BOOST_NO_TEMPLATED_IOSTREAMS</span></code>
|
||||||
|
</p>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<p>
|
||||||
|
Standard library
|
||||||
|
</p>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<p>
|
||||||
|
The standard library does not provide templated iostream classes.
|
||||||
|
</p>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
<p>
|
<p>
|
||||||
<code class="computeroutput"><span class="identifier">BOOST_NO_TEMPLATED_ITERATOR_CONSTRUCTORS</span></code>
|
<code class="computeroutput"><span class="identifier">BOOST_NO_TEMPLATED_ITERATOR_CONSTRUCTORS</span></code>
|
||||||
|
@@ -960,7 +960,7 @@
|
|||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||||
<td align="left"><p><small>Last revised: April 21, 2008 at 08:38:49 GMT</small></p></td>
|
<td align="left"><p><small>Last revised: April 21, 2008 at 09:16:51 GMT</small></p></td>
|
||||||
<td align="right"><div class="copyright-footer"></div></td>
|
<td align="right"><div class="copyright-footer"></div></td>
|
||||||
</tr></table>
|
</tr></table>
|
||||||
<hr>
|
<hr>
|
||||||
|
@@ -250,6 +250,9 @@ The platform does not have a conforming version of `swprintf`.
|
|||||||
Class template partial specialization (14.5.4 \[temp.class.spec\]) not
|
Class template partial specialization (14.5.4 \[temp.class.spec\]) not
|
||||||
supported.
|
supported.
|
||||||
]]
|
]]
|
||||||
|
[[`BOOST_NO_TEMPLATED_IOSTREAMS`][Standard library][
|
||||||
|
The standard library does not provide templated iostream classes.
|
||||||
|
]]
|
||||||
[[`BOOST_NO_TEMPLATED_ITERATOR_CONSTRUCTORS`][Standard library][
|
[[`BOOST_NO_TEMPLATED_ITERATOR_CONSTRUCTORS`][Standard library][
|
||||||
The standard library does not provide templated iterator constructors
|
The standard library does not provide templated iterator constructors
|
||||||
for its containers.
|
for its containers.
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# Regression test Jamfile for boost configuration setup.
|
# Regression test Jamfile for boost configuration setup.
|
||||||
# *** DO NOT EDIT THIS FILE BY HAND ***
|
# *** 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
|
# by libs/config/tools/generate.cpp
|
||||||
# Copyright John Maddock.
|
# Copyright John Maddock.
|
||||||
# Use, modification and distribution are subject to the
|
# Use, modification and distribution are subject to the
|
||||||
@@ -337,6 +337,9 @@ test-suite "BOOST_NO_STD_WSTRING" :
|
|||||||
test-suite "BOOST_NO_SWPRINTF" :
|
test-suite "BOOST_NO_SWPRINTF" :
|
||||||
[ run ../no_swprintf_pass.cpp ]
|
[ run ../no_swprintf_pass.cpp ]
|
||||||
[ compile-fail ../no_swprintf_fail.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" :
|
test-suite "BOOST_NO_TEMPLATE_TEMPLATES" :
|
||||||
[ run ../no_template_template_pass.cpp ]
|
[ run ../no_template_template_pass.cpp ]
|
||||||
[ compile-fail ../no_template_template_fail.cpp ] ;
|
[ compile-fail ../no_template_template_fail.cpp ] ;
|
||||||
|
28
test/boost_no_template_streams.ipp
Normal file
28
test/boost_no_template_streams.ipp
Normal file
@@ -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_STD_WSTRING);
|
||||||
PRINT_MACRO(BOOST_NO_STRINGSTREAM);
|
PRINT_MACRO(BOOST_NO_STRINGSTREAM);
|
||||||
PRINT_MACRO(BOOST_NO_SWPRINTF);
|
PRINT_MACRO(BOOST_NO_SWPRINTF);
|
||||||
|
PRINT_MACRO(BOOST_NO_TEMPLATED_IOSTREAMS);
|
||||||
PRINT_MACRO(BOOST_NO_TEMPLATED_ITERATOR_CONSTRUCTORS);
|
PRINT_MACRO(BOOST_NO_TEMPLATED_ITERATOR_CONSTRUCTORS);
|
||||||
PRINT_MACRO(BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION);
|
PRINT_MACRO(BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION);
|
||||||
PRINT_MACRO(BOOST_NO_TEMPLATE_TEMPLATES);
|
PRINT_MACRO(BOOST_NO_TEMPLATE_TEMPLATES);
|
||||||
@@ -1028,6 +1029,7 @@ void print_boost_macros()
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// END GENERATED BLOCK
|
// END GENERATED BLOCK
|
||||||
|
|
||||||
PRINT_MACRO(BOOST_INTEL);
|
PRINT_MACRO(BOOST_INTEL);
|
||||||
|
@@ -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
|
// by libs/config/tools/generate.cpp
|
||||||
// Copyright John Maddock 2002-4.
|
// Copyright John Maddock 2002-4.
|
||||||
// Use, modification and distribution are subject to the
|
// Use, modification and distribution are subject to the
|
||||||
@@ -292,6 +292,11 @@ namespace boost_no_std_wstring = empty_boost;
|
|||||||
#else
|
#else
|
||||||
namespace boost_no_swprintf = empty_boost;
|
namespace boost_no_swprintf = empty_boost;
|
||||||
#endif
|
#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
|
#ifndef BOOST_NO_TEMPLATE_TEMPLATES
|
||||||
#include "boost_no_template_template.ipp"
|
#include "boost_no_template_template.ipp"
|
||||||
#else
|
#else
|
||||||
@@ -1116,6 +1121,11 @@ int main( int, char *[] )
|
|||||||
std::cerr << "Failed test for BOOST_NO_SWPRINTF at: " << __FILE__ << ":" << __LINE__ << std::endl;
|
std::cerr << "Failed test for BOOST_NO_SWPRINTF at: " << __FILE__ << ":" << __LINE__ << std::endl;
|
||||||
++error_count;
|
++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())
|
if(0 != boost_no_template_templates::test())
|
||||||
{
|
{
|
||||||
std::cerr << "Failed test for BOOST_NO_TEMPLATE_TEMPLATES at: " << __FILE__ << ":" << __LINE__ << std::endl;
|
std::cerr << "Failed test for BOOST_NO_TEMPLATE_TEMPLATES at: " << __FILE__ << ":" << __LINE__ << std::endl;
|
||||||
|
37
test/no_template_streams_fail.cpp
Normal file
37
test/no_template_streams_fail.cpp
Normal file
@@ -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();
|
||||||
|
}
|
||||||
|
|
37
test/no_template_streams_pass.cpp
Normal file
37
test/no_template_streams_pass.cpp
Normal file
@@ -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