Opened 14 years ago

Closed 13 years ago

#2496 closed Bugs (fixed)

boost/function/function_fwd.hpp:24:7: warning: "BOOST_STRICT_CONFIG" is not defined

Reported by: ANDREW CHITTENDEN <andyc@…> Owned by: Douglas Gregor
Milestone: Boost 1.38.0 Component: function
Version: Boost 1.36.0 Severity: Problem
Keywords: Cc:

Description

happens on boost 1.37.0:

# gcc -W -Wall -Wundef -I/home/andyc/work/3rdParty/boost_1_37_0 -c function_fwd_problem.cpp In file included from /home/andyc/work/3rdParty/boost_1_37_0/boost/function/function_base.hpp:36,

from /home/andyc/work/3rdParty/boost_1_37_0/boost/function/detail/prologue.hpp:17, from /home/andyc/work/3rdParty/boost_1_37_0/boost/function.hpp:24, from function_fwd_problem.cpp:1:

/home/andyc/work/3rdParty/boost_1_37_0/boost/function/function_fwd.hpp:24:7: warning: "BOOST_STRICT_CONFIG" is not defined

# cat function_fwd_problem.cpp #include <boost/function.hpp> #

Change History (3)

comment:1 by ANDREW CHITTENDEN <andyc@…>, 14 years ago

This following patch fixes it:

boost/function/function_fwd.hpp 1.1 vs edited

--- 1.1/boost/function/function_fwd.hpp 2008-11-06 09:48:35 +00:00 +++ edited/boost/function/function_fwd.hpp 2008-11-12 11:49:40 +00:00 @@ -21,7 +21,7 @@

#if defined (BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION) \

defined(BOOST_BCB_PARTIAL_SPECIALIZATION_BUG) \
+
!(BOOST_STRICT_CONFIG !defined(SUNPRO_CC) SUNPRO_CC > 0x540)
!(defined(BOOST_STRICT_CONFIG) !defined(SUNPRO_CC) SUNPRO_CC > 0x540)

# define BOOST_FUNCTION_NO_FUNCTION_TYPE_SYNTAX #endif

comment:2 by Marshall Clow, 14 years ago

Component: Nonefunction
Owner: set to Douglas Gregor

comment:3 by Vladimir Prus, 13 years ago

Resolution: fixed
Status: newclosed

This is already fixed in SVN.

Note: See TracTickets for help on using tickets.