mirror of
https://github.com/boostorg/endian.git
synced 2025-08-02 14:04:29 +02:00
Add explicit to ctor
git-svn-id: http://svn.boost.org/svn/boost/sandbox/endian@48005 b8fc166d-592f-0410-95f2-cb63ce0dd405
This commit is contained in:
@@ -213,7 +213,7 @@ usual operations on integers are supplied.</p>
|
|||||||
public:
|
public:
|
||||||
typedef T value_type;
|
typedef T value_type;
|
||||||
endian(){}
|
endian(){}
|
||||||
endian(T v);
|
explicit endian(T v);
|
||||||
endian & operator=(T v);
|
endian & operator=(T v);
|
||||||
operator T() const;
|
operator T() const;
|
||||||
};
|
};
|
||||||
@@ -311,7 +311,7 @@ usual operations on integers are supplied.</p>
|
|||||||
<blockquote>
|
<blockquote>
|
||||||
<p><i>Effects:</i> Constructs an object of type <code>endian<E, T, n_bits, A></code>.</p>
|
<p><i>Effects:</i> Constructs an object of type <code>endian<E, T, n_bits, A></code>.</p>
|
||||||
</blockquote>
|
</blockquote>
|
||||||
<p><code>endian(T v);</code></p>
|
<p><code>explicit endian(T v);</code></p>
|
||||||
<blockquote>
|
<blockquote>
|
||||||
<p><i>Effects:</i> Constructs an object of type <code>endian<E, T, n_bits, A></code>.</p>
|
<p><i>Effects:</i> Constructs an object of type <code>endian<E, T, n_bits, A></code>.</p>
|
||||||
<p><i>Postcondition:</i> <code>x == v,</code> where <code>x</code> is the
|
<p><i>Postcondition:</i> <code>x == v,</code> where <code>x</code> is the
|
||||||
@@ -514,7 +514,7 @@ Tomas Puverle, and
|
|||||||
Yuval Ronen.</p>
|
Yuval Ronen.</p>
|
||||||
<hr>
|
<hr>
|
||||||
<p>Last revised:
|
<p>Last revised:
|
||||||
<!--webbot bot="Timestamp" s-type="EDITED" s-format="%d %B, %Y" startspan -->26 May, 2008<!--webbot bot="Timestamp" endspan i-checksum="14024" --></p>
|
<!--webbot bot="Timestamp" s-type="EDITED" s-format="%d %B, %Y" startspan -->06 August, 2008<!--webbot bot="Timestamp" endspan i-checksum="34800" --></p>
|
||||||
<p><EFBFBD> Copyright Beman Dawes, 2006</p>
|
<p><EFBFBD> Copyright Beman Dawes, 2006</p>
|
||||||
<p>Distributed under the Boost Software License, Version 1.0. (See accompanying
|
<p>Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||||
file <a href="../../../LICENSE_1_0.txt">LICENSE_1_0.txt</a> or copy at
|
file <a href="../../../LICENSE_1_0.txt">LICENSE_1_0.txt</a> or copy at
|
||||||
|
Reference in New Issue
Block a user