From c75b62533aa7ad5e071a03ee582a2667cf188f8e Mon Sep 17 00:00:00 2001 From: Peder Holt Date: Mon, 30 Aug 2010 20:08:29 +0000 Subject: [PATCH] #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] --- doc/typeof.qbk | 10 +++++----- include/boost/typeof/message.hpp | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) mode change 100755 => 100644 include/boost/typeof/message.hpp diff --git a/doc/typeof.qbk b/doc/typeof.qbk index 86be103..872e5ac 100644 --- a/doc/typeof.qbk +++ b/doc/typeof.qbk @@ -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] diff --git a/include/boost/typeof/message.hpp b/include/boost/typeof/message.hpp old mode 100755 new mode 100644 index 1471ef3..cabbb82 --- a/include/boost/typeof/message.hpp +++ b/include/boost/typeof/message.hpp @@ -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