[Boost-bugs] [Boost C++ Libraries] #2060: auto_ptr support for unit_test_log.set_formatter

Subject: [Boost-bugs] [Boost C++ Libraries] #2060: auto_ptr support for unit_test_log.set_formatter
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2008-06-30 18:24:50


#2060: auto_ptr support for unit_test_log.set_formatter
------------------------------------------+---------------------------------
 Reporter: dlwalker | Owner: rogeeff
     Type: Bugs | Status: new
Milestone: Boost 1.36.0 | Component: test
  Version: Boost 1.35.0 | Severity: Problem
 Keywords: test formatter unit_test_log |
------------------------------------------+---------------------------------
 The member function {{{void
 boost::unit_test::unit_test_log_t::set_formatter(
 boost::unit_test::unit_test_log_formatter* )}}} gives the log ownership of
 the given formatter. Isn't it customary to use
 {{{std::auto_ptr<boost::unit_test::unit_test_log_formatter>}}} for this
 purpose? The intentions would be clearer. And it would minimize the
 chance of submitting an object created in an incompatible manner.

 This should be implemented in a new member function, so the current one
 can stay (but depreciated) for backwards compatibility.

-- 
Ticket URL: <http://svn.boost.org/trac/boost/ticket/2060>
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:49:58 UTC