|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r56313 - in trunk: boost/wave/util libs/wave/doc
From: hartmut.kaiser_at_[hidden]
Date: 2009-09-19 16:29:57
Author: hkaiser
Date: 2009-09-19 16:29:56 EDT (Sat, 19 Sep 2009)
New Revision: 56313
URL: http://svn.boost.org/trac/boost/changeset/56313
Log:
Wave: fixed documentation bug
Text files modified:
trunk/boost/wave/util/file_position.hpp | 14 +++++++-------
trunk/libs/wave/doc/class_reference_filepos.html | 18 +++++++++---------
2 files changed, 16 insertions(+), 16 deletions(-)
Modified: trunk/boost/wave/util/file_position.hpp
==============================================================================
--- trunk/boost/wave/util/file_position.hpp (original)
+++ trunk/boost/wave/util/file_position.hpp 2009-09-19 16:29:56 EDT (Sat, 19 Sep 2009)
@@ -78,12 +78,12 @@
public:
typedef StringT string_type;
-
+
file_position()
: file(), line(1), column(1)
{}
- explicit file_position(string_type const& file_, int line_ = 1,
- int column_ = 1)
+ explicit file_position(string_type const& file_, unsigned int line_ = 1,
+ unsigned int column_ = 1)
: file(file_), line(line_), column(column_)
{
BOOST_ASSERT(!debug::is_escaped_lit(file));
@@ -93,7 +93,7 @@
string_type const &get_file() const { return file; }
unsigned int get_line() const { return line; }
unsigned int get_column() const { return column; }
-
+
void set_file(string_type const &file_)
{
file = file_;
@@ -101,7 +101,7 @@
}
void set_line(unsigned int line_) { line = line_; }
void set_column(unsigned int column_) { column = column_; }
-
+
private:
#if BOOST_WAVE_SERIALIZATION != 0
friend class boost::serialization::access;
@@ -154,11 +154,11 @@
: boost::spirit::classic::position_iterator<IteratorT, PositionT>
{
typedef boost::spirit::classic::position_iterator<IteratorT, PositionT> base_type;
-
+
position_iterator()
{
}
-
+
position_iterator(IteratorT const &begin, IteratorT const &end,
PositionT const &pos)
: base_type(begin, end, pos)
Modified: trunk/libs/wave/doc/class_reference_filepos.html
==============================================================================
--- trunk/libs/wave/doc/class_reference_filepos.html (original)
+++ trunk/libs/wave/doc/class_reference_filepos.html 2009-09-19 16:29:56 EDT (Sat, 19 Sep 2009)
@@ -47,12 +47,12 @@
<span class="keyword">public</span>:
<a href="class_reference_filepos.html#constructors">file_position</a>();
<span class="keyword">explicit</span> file_position(String const &file,
- int line_ = 1, int column_ = 1);
+ <span class="keyword">unsigned int</span> line_ = 1, <span class="keyword">unsigned int </span>column_ = 1);
// accessors
String <span class="keyword">const</span> &get_file() <span class="keyword">const</span>;
- <span class="keyword">int</span> get_line() <span class="keyword">const</span>;
- <span class="keyword">int</span> get_column() <span class="keyword">const</span>;
+ <span class="keyword">unsigned int</span> get_line() <span class="keyword">const</span>;
+ <span class="keyword">unsigned int</span> get_column() <span class="keyword">const</span>;
<span class="keyword">void</span> set_file(String <span class="keyword">const</span> &file);
<span class="keyword">void</span> set_line(<span class="keyword">int</span> line);
@@ -73,7 +73,7 @@
<h3><a name="constructors"></a>Constructors</h3>
<pre> file_position();
<span class="keyword">explicit</span> file_position(String const &file,
- int line_ = 1, int column_ = 1);
+ <span class="keyword">unsigned int </span>line_ = 1, <span class="keyword">unsigned int </span>column_ = 1);
</pre>
<blockquote>
<p>The constructors initialize a new instance of a <tt>file_position</tt> in
@@ -82,8 +82,8 @@
</blockquote>
<p><a name="get_accessors"></a><b>get_file</b>, <b>get_line</b>, <b>get_column</b></p>
<pre> String <span class="keyword">const</span> &get_file() <span class="keyword">const</span>;
- <span class="keyword">int</span> get_line() <span class="keyword">const</span>;
- <span class="keyword">int</span> get_column() <span class="keyword">const</span>;
+ <span class="keyword">unsigned int</span> get_line() <span class="keyword">const</span>;
+ <span class="keyword">unsigned int</span> get_column() <span class="keyword">const</span>;
</pre>
<blockquote>
<p>The <tt>get_...</tt> functions are used to access the current values of the
@@ -92,8 +92,8 @@
</blockquote>
<p><a name="set_accessors"></a><b>set_file</b>, <b>set_line</b>, <b>set_column</b></p>
<pre> <span class="keyword">void</span> set_file(String <span class="keyword">const</span> &file);
- <span class="keyword">void</span> set_line(<span class="keyword">int</span> line);
- <span class="keyword">void</span> set_column(<span class="keyword">int</span> column);
+ <span class="keyword">void</span> set_line(<span class="keyword">unsigned int</span> line);
+ <span class="keyword">void</span> set_column(<span class="keyword">unsigned int</span> column);
</pre>
<blockquote>
<p>The <tt>set_...</tt> functions are used to set new values to the file position
@@ -113,7 +113,7 @@
<br>
<font size="2">Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) </font> </p>
<p class="copyright"><span class="updated">Last updated:
- <!-- #BeginDate format:fcAm1m -->Sunday, October 12, 2008 20:14<!-- #EndDate -->
+ <!-- #BeginDate format:fcAm1m -->Saturday, September 18, 2009 15:14<!-- #EndDate -->
</span></p>
</body>
</html>
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