[NetBehaviour] yesterdays object lesson

Rob Myers rob at robmyers.org
Thu Oct 10 01:42:04 CEST 2013


On 09/10/13 01:46 PM, James Morris wrote:
> // c++

rob at hacienda:~$ cd Desktop/
rob at hacienda:~/Desktop$ emacs object_lesson.cpp &
[1] 27185
rob at hacienda:~/Desktop$ make object_lesson
g++     object_lesson.cpp   -o object_lesson
rob at hacienda:~/Desktop$ ./object_lesson
int value: 67
is I
float val: 0.675
is F
rob at hacienda:~/Desktop$

As an alternative to member function overloading, this could be done at
compile-time with template specialization.




More information about the NetBehaviour mailing list