$include_dir="/home/hyper-archives/boost-commit/include"; include("$include_dir/msg-header.inc") ?>
Subject: [Boost-commit] svn:boost r70991 - sandbox/shifted_ptr/libs/smart_ptr/example
From: phil_at_[hidden]
Date: 2011-04-04 21:36:55
Author: pbouchard
Date: 2011-04-04 21:36:54 EDT (Mon, 04 Apr 2011)
New Revision: 70991
URL: http://svn.boost.org/trac/boost/changeset/70991
Log:
* Added Makefile
Added:
   sandbox/shifted_ptr/libs/smart_ptr/example/Makefile   (contents, props changed)
Text files modified: 
   sandbox/shifted_ptr/libs/smart_ptr/example/t100.h |     2 +-                                      
   1 files changed, 1 insertions(+), 1 deletions(-)
Added: sandbox/shifted_ptr/libs/smart_ptr/example/Makefile
==============================================================================
--- (empty file)
+++ sandbox/shifted_ptr/libs/smart_ptr/example/Makefile	2011-04-04 21:36:54 EDT (Mon, 04 Apr 2011)
@@ -0,0 +1,48 @@
+CXX             := g++
+CXXFLAGS        := -ggdb3
+INCPATH         := -I../../..
+LINK            := g++
+LFLAGS          := 
+RM              := rm
+HEADERS         := $(wildcard *.h)
+SOURCES         := $(wildcard *.cpp)
+OBJECTS         := $(patsubst %.cpp,%.o,$(SOURCES))
+
+.SUFFIXES: .cpp
+
+.cpp.o:
+	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<
+
+.PHONY : all depend clean
+
+
+all : shifted_ptr_test1 shifted_ptr_test2 shifted_ptr_test3 local_pool_test1 local_pool_test2 t100_test1
+
+shifted_ptr_test1: shifted_ptr_test1.o
+	$(LINK) $(LFLAGS) -o $@ $^
+
+shifted_ptr_test2: shifted_ptr_test2.o
+	$(LINK) $(LFLAGS) -o $@ $^
+
+shifted_ptr_test3: shifted_ptr_test3.o
+	$(LINK) $(LFLAGS) -o $@ $^ -lboost_unit_test_framework-mt
+
+local_pool_test1: local_pool_test1.o
+	$(LINK) $(LFLAGS) -o $@ $^
+
+local_pool_test2: local_pool_test2.o
+	$(LINK) $(LFLAGS) -o $@ $^
+
+t100_test1: t100_test1.o
+	$(LINK) $(LFLAGS) -o $@ $^ -lboost_regex-mt
+
+
+Makefile.dep: $(SOURCES)
+	$(CXX) ${INCPATH} -MM $? > $@
+
+clean:
+	$(RM) shifted_ptr_test1 shifted_ptr_test2 shifted_ptr_test3 local_pool_test1 local_pool_test2 t100_test1
+	$(RM) $(OBJECTS)
+	$(RM) *~ core
+
+-include Makefile.dep
Modified: sandbox/shifted_ptr/libs/smart_ptr/example/t100.h
==============================================================================
--- sandbox/shifted_ptr/libs/smart_ptr/example/t100.h	(original)
+++ sandbox/shifted_ptr/libs/smart_ptr/example/t100.h	2011-04-04 21:36:54 EDT (Mon, 04 Apr 2011)
@@ -48,7 +48,7 @@
     neuron_base(std::string const & s) : exp_(s)/*, sub_(exp_.mark_count())*/ {}
     virtual ~neuron_base() {};
 
-    virtual double operator () (std::string const & input) {};
+    virtual double operator () (std::string const & input) { return 0; };
 };