|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r83915 - in branches/release: . libs libs/smart_ptr
From: pdimov_at_[hidden]
Date: 2013-04-15 11:13:21
Author: pdimov
Date: 2013-04-15 11:13:20 EDT (Mon, 15 Apr 2013)
New Revision: 83915
URL: http://svn.boost.org/trac/boost/changeset/83915
Log:
Merged revision(s) 83914 from trunk:
Fix new double(n) to new double[n].
Properties modified:
branches/release/ (props changed)
branches/release/libs/ (props changed)
branches/release/libs/smart_ptr/ (props changed)
Text files modified:
branches/release/libs/smart_ptr/shared_ptr.htm | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
Modified: branches/release/libs/smart_ptr/shared_ptr.htm
==============================================================================
--- branches/release/libs/smart_ptr/shared_ptr.htm (original)
+++ branches/release/libs/smart_ptr/shared_ptr.htm 2013-04-15 11:13:20 EDT (Mon, 15 Apr 2013)
@@ -61,8 +61,8 @@
the template parameter. There is almost no difference between using an unsized array, <code>T[]</code>,
and a sized array, <code>T[N]</code>; the latter just enables <code>operator[]</code> to perform a range check
on the index.</p>
- <blockquote><em>Example:</em><br /><pre>shared_ptr<double[1024]> p1( new double(1024) );
-shared_ptr<double[]> p2( new double(n) );
+ <blockquote><em>Example:</em><br /><pre>shared_ptr<double[1024]> p1( new double[1024] );
+shared_ptr<double[]> p2( new double[n] );
</pre></blockquote>
<h2 id="BestPractices">Best Practices</h2>
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