Author: sebor
Date: Wed Feb 13 14:26:17 2008
New Revision: 627603
URL: http://svn.apache.org/viewvc?rev=627603&view=rev
Log:
2008-02-13 Martin Sebor <[EMAIL PROTECTED]>
* examples/tutoria/alg7.cpp (partial_sort_example): Removed redundant
list ctor argument to get around an otherwise hard to silence HP aCC
6 remark #4271-D type conversion may lose sign. See STDCXX-727.
(merge_example): Ditto.
Modified:
stdcxx/trunk/examples/tutorial/alg7.cpp
Modified: stdcxx/trunk/examples/tutorial/alg7.cpp
URL:
http://svn.apache.org/viewvc/stdcxx/trunk/examples/tutorial/alg7.cpp?rev=627603&r1=627602&r2=627603&view=diff
==============================================================================
--- stdcxx/trunk/examples/tutorial/alg7.cpp (original)
+++ stdcxx/trunk/examples/tutorial/alg7.cpp Wed Feb 13 14:26:17 2008
@@ -22,7 +22,7 @@
* implied. See the License for the specific language governing
* permissions and limitations under the License.
*
- * Copyright 1994-2006 Rogue Wave Software.
+ * Copyright 1994-2008 Rogue Wave Software, Inc.
*
**************************************************************************/
@@ -109,7 +109,7 @@
std::cout << '\n';
// Make a std::list of random integers.
- std::list<int, std::allocator<int> > aList (15, 0);
+ std::list<int, std::allocator<int> > aList (15);
std::generate (aList.begin (), aList.end (), randomValue);
std::copy (aList.begin (), aList.end (), intOut);
std::cout << '\n';
@@ -179,7 +179,7 @@
// Make a std::list and std::vector of 10 random integers.
std::vector<int, std::allocator<int> > aVec (10);
- std::list<int, std::allocator<int> > aList (10, 0);
+ std::list<int, std::allocator<int> > aList (10);
std::generate (aVec.begin (), aVec.end (), randomValue);
std::sort (aVec.begin (), aVec.end ());
std::generate_n (aList.begin (), 10, randomValue);