Re: [Boost-bugs] [Boost C++ Libraries] #5637: use of mpl::print imposes default constructible requirement on argument

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #5637: use of mpl::print imposes default constructible requirement on argument
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-07-18 18:03:23


#5637: use of mpl::print imposes default constructible requirement on argument
-------------------------------+-----------------------
  Reporter: ramey | Owner: dave
      Type: Tasks | Status: closed
 Milestone: To Be Determined | Component: mpl
   Version: Boost 1.46.1 | Severity: Problem
Resolution: invalid | Keywords: mpl print
-------------------------------+-----------------------

Comment (by pmachata@…):

 It seems that using NULL to initialize the enum value tickles GCC the
 right way to produce a warning if the template is actually used (unlike
 division by zero, which produces one warning always, and optionally more
 warnings if print is actually "invoked"). It's also enabled by default,
 unlike signed/unsigned compare that's used in the current solution.

 One downside is that we get a warning only for the first failure in a
 translation unit. What's considered more important: that we have one
 warning always, or that we get all citations, but only with -Wall?

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/5637#comment:5>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:13 UTC