[Boost-bugs] [Boost C++ Libraries] #6759: boost::wave::support_option_option_new_line didn't work as expected.

Subject: [Boost-bugs] [Boost C++ Libraries] #6759: boost::wave::support_option_option_new_line didn't work as expected.
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-04-02 09:51:09


#6759: boost::wave::support_option_option_new_line didn't work as expected.
--------------------------------+-------------------------------------------
 Reporter: wuye9036@… | Owner: hkaiser
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: wave
  Version: Boost 1.49.0 | Severity: Problem
 Keywords: |
--------------------------------+-------------------------------------------
 I think following code is error:

 if ((!seen_newline || act_pos.get_column() > 1) &&
     !need_single_line(ctx.get_language()))
 {
 // warn, if this file does not end with a newline
     BOOST_WAVE_THROW_CTX(ctx, preprocess_exception,
         last_line_not_terminated, "", act_pos);
 }

 I think we hope that error reported if "newline not found" while "need
 single line"

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/6759>
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:09 UTC