[complement-svn] SF.net SVN: complement: [1750] trunk/complement/explore/inquiry/STLport
Status: Pre-Alpha
Brought to you by:
complement
From: <com...@us...> - 2007-09-28 10:41:40
|
Revision: 1750 http://complement.svn.sourceforge.net/complement/?rev=1750&view=rev Author: complement Date: 2007-09-28 03:41:29 -0700 (Fri, 28 Sep 2007) Log Message: ----------- investigation of merge/size problem with some compilers Added Paths: ----------- trunk/complement/explore/inquiry/STLport/merge/ trunk/complement/explore/inquiry/STLport/merge/Makefile trunk/complement/explore/inquiry/STLport/merge/Makefile.inc trunk/complement/explore/inquiry/STLport/merge/test.cc Property changes on: trunk/complement/explore/inquiry/STLport/merge ___________________________________________________________________ Name: svn:ignore + obj Added: trunk/complement/explore/inquiry/STLport/merge/Makefile =================================================================== --- trunk/complement/explore/inquiry/STLport/merge/Makefile (rev 0) +++ trunk/complement/explore/inquiry/STLport/merge/Makefile 2007-09-28 10:41:29 UTC (rev 1750) @@ -0,0 +1,14 @@ +# -*- Makefile -*- Time-stamp: <03/07/09 18:08:47 ptr> + +SRCROOT := ../../.. +# COMPILER_NAME := gcc + +STLPORT_DIR := /export/home/ptr/STLport.lab/STLport +include Makefile.inc +include ${SRCROOT}/Makefiles/gmake/top.mak + + +INCLUDES += -I$(SRCROOT)/include + +LDFLAGS += -Wl,-rpath=$(STLPORT_LIB_DIR) + Added: trunk/complement/explore/inquiry/STLport/merge/Makefile.inc =================================================================== --- trunk/complement/explore/inquiry/STLport/merge/Makefile.inc (rev 0) +++ trunk/complement/explore/inquiry/STLport/merge/Makefile.inc 2007-09-28 10:41:29 UTC (rev 1750) @@ -0,0 +1,4 @@ +# -*- makefile -*- Time-stamp: <02/07/14 14:03:13 ptr> + +PRGNAME = test +SRC_CC = test.cc Added: trunk/complement/explore/inquiry/STLport/merge/test.cc =================================================================== --- trunk/complement/explore/inquiry/STLport/merge/test.cc (rev 0) +++ trunk/complement/explore/inquiry/STLport/merge/test.cc 2007-09-28 10:41:29 UTC (rev 1750) @@ -0,0 +1,30 @@ +#include <list> +#include <iostream> + +using namespace std; + +int main() +{ + // char buf1[1024]; + // StackAllocator<int> stack1(buf1, buf1 + sizeof(buf1)); + + // char buf2[1024]; + // StackAllocator<int> stack2(buf2, buf2 + sizeof(buf2)); + + // typedef list<int, StackAllocator<int> > ListInt; + typedef list<int> ListInt; + + ListInt lint1(10, 0 /* , stack1 */ ); + ListInt lint2(10, 1 /* , stack2 */ ); + + // ListInt lintref(stack2); + // lintref.insert(lintref.begin(), 10, 1); + // lintref.insert(lintref.begin(), 10, 0); + + lint1.merge(lint2); + cerr << lint1.size() << endl; + // CPPUNIT_ASSERT( lint1 == lintref ); + // CPPUNIT_ASSERT( lint2.empty() ); + + return 0; +} This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |