Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r59741 - trunk/boost/property_tree/detail
From: sebastian.redl_at_[hidden]
Date: 2010-02-17 14:30:45


Author: cornedbee
Date: 2010-02-17 14:30:44 EST (Wed, 17 Feb 2010)
New Revision: 59741
URL: http://svn.boost.org/trac/boost/changeset/59741

Log:
file_parser_error's property getters ought to be const. Now they are. Fixes bug 3838.
Text files modified:
   trunk/boost/property_tree/detail/file_parser_error.hpp | 12 ++++++------
   1 files changed, 6 insertions(+), 6 deletions(-)

Modified: trunk/boost/property_tree/detail/file_parser_error.hpp
==============================================================================
--- trunk/boost/property_tree/detail/file_parser_error.hpp (original)
+++ trunk/boost/property_tree/detail/file_parser_error.hpp 2010-02-17 14:30:44 EST (Wed, 17 Feb 2010)
@@ -45,19 +45,19 @@
 
         // Get error message (without line and file - use what() to get
         // full message)
- std::string message()
+ std::string message() const
         {
             return m_message;
         }
 
         // Get error filename
- std::string filename()
+ std::string filename() const
         {
             return m_filename;
         }
 
         // Get error line number
- unsigned long line()
+ unsigned long line() const
         {
             return m_line;
         }
@@ -69,9 +69,9 @@
         unsigned long m_line;
 
         // Format error message to be returned by std::runtime_error::what()
- std::string format_what(const std::string &message,
- const std::string &filename,
- unsigned long line)
+ static std::string format_what(const std::string &message,
+ const std::string &filename,
+ unsigned long line)
         {
             std::stringstream stream;
             if (line > 0)


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk