|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r67382 - trunk/boost/wave/util
From: hartmut.kaiser_at_[hidden]
Date: 2010-12-21 07:22:41
Author: hkaiser
Date: 2010-12-21 07:22:36 EST (Tue, 21 Dec 2010)
New Revision: 67382
URL: http://svn.boost.org/trac/boost/changeset/67382
Log:
Wave: fixing a couple of warnings
Text files modified:
trunk/boost/wave/util/file_position.hpp | 16 ++++++++--------
1 files changed, 8 insertions(+), 8 deletions(-)
Modified: trunk/boost/wave/util/file_position.hpp
==============================================================================
--- trunk/boost/wave/util/file_position.hpp (original)
+++ trunk/boost/wave/util/file_position.hpp 2010-12-21 07:22:36 EST (Tue, 21 Dec 2010)
@@ -82,8 +82,8 @@
file_position()
: file(), line(1), column(1)
{}
- explicit file_position(string_type const& file_, unsigned int line_ = 1,
- unsigned int column_ = 1)
+ explicit file_position(string_type const& file_, std::size_t line_ = 1,
+ std::size_t column_ = 1)
: file(file_), line(line_), column(column_)
{
BOOST_ASSERT(!debug::is_escaped_lit(file));
@@ -91,16 +91,16 @@
// accessors
string_type const &get_file() const { return file; }
- unsigned int get_line() const { return line; }
- unsigned int get_column() const { return column; }
+ std::size_t get_line() const { return line; }
+ std::size_t get_column() const { return column; }
void set_file(string_type const &file_)
{
file = file_;
BOOST_ASSERT(!debug::is_escaped_lit(file));
}
- void set_line(unsigned int line_) { line = line_; }
- void set_column(unsigned int column_) { column = column_; }
+ void set_line(std::size_t line_) { line = line_; }
+ void set_column(std::size_t column_) { column = column_; }
private:
#if BOOST_WAVE_SERIALIZATION != 0
@@ -116,8 +116,8 @@
#endif
string_type file;
- unsigned int line;
- unsigned int column;
+ std::size_t line;
+ std::size_t column;
};
template <typename StringT>
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