mirror of
https://github.com/boostorg/typeof.git
synced 2025-05-09 15:04:00 +00:00
#4605: Make BOOST_TYPEOF_SILENT default
BOOST_TYPEOF_SILENT has been removed and BOOST_TYPEOF_MESSAGES has been added. Messages are now hidden by default, and you have to define BOOST_TYPEOF_MESSAGES to see them at all. [SVN r65137]
This commit is contained in:
parent
d04dc539a0
commit
c75b62533a
@ -1,4 +1,4 @@
|
||||
[library Boost.Typeof
|
||||
[library Boost.Typeof
|
||||
[authors [Vertleyb, Arkadiy], [Holt, Peder]]
|
||||
[copyright 2004 2005 Arkadiy Vertleyb, Peder Holt]
|
||||
[license
|
||||
@ -383,11 +383,11 @@ Redefine if you want the Typeof Library to handle functions with more parameters
|
||||
|
||||
[endsect]
|
||||
|
||||
[section:silent SILENT]
|
||||
[section:messages MESSAGES]
|
||||
|
||||
Define `BOOST_TYPEOF_SILENT` before including boost/typeof/typeof.hpp to
|
||||
supress the messages "using typeof emulation" and "using native typeof".
|
||||
By default, these messages will be displayed when compiling a file including boost/typeof/typeof.hpp.
|
||||
Define `BOOST_TYPEOF_MESSAGE` before including boost/typeof/typeof.hpp to
|
||||
include messages "using typeof emulation" and "using native typeof".
|
||||
By default, these messages will not be displayed.
|
||||
|
||||
[endsect]
|
||||
|
||||
|
2
include/boost/typeof/message.hpp
Executable file → Normal file
2
include/boost/typeof/message.hpp
Executable file → Normal file
@ -2,7 +2,7 @@
|
||||
// Use, modification and distribution is subject to the Boost Software
|
||||
// License, Version 1.0. (http://www.boost.org/LICENSE_1_0.txt)
|
||||
|
||||
#if defined(_MSC_VER) && !defined BOOST_TYPEOF_SILENT
|
||||
#if defined(_MSC_VER) && defined BOOST_TYPEOF_MESSAGES
|
||||
# pragma message(BOOST_TYPEOF_TEXT)
|
||||
#endif
|
||||
#undef BOOST_TYPEOF_TEXT
|
||||
|
Loading…
x
Reference in New Issue
Block a user