delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/03/22/19:00:03

Message-ID: <38D9540C.827432C1@caresystems.com.au>
Date: Thu, 23 Mar 2000 09:15:24 +1000
From: leon <Leon AT caresystems DOT com DOT au>
X-Mailer: Mozilla 4.7 [en] (Win95; I)
X-Accept-Language: en
MIME-Version: 1.0
To: djgpp AT delorie DOT com
Subject: some gdb and ANSI template standards
References: <38CC0B8F DOT EAEB9F25 AT hotmail DOT com> <38CC0C58 DOT 6B1CB1F4 AT hotmail DOT com>
Reply-To: djgpp AT delorie DOT com

	Hello there

	sorry that haven't tested it on djgpp - but it could be a gdb general
problem...
	
	as we all know - one can have a template method within a non-template
class
something like that: 
class Test
{
public:
Test(){;}
~Test(){;}
template <class T>
void Go(T *somePointer)
{
*somePointer=7;
}
};

then one can use it as such
Test myTest;
int myInt(0);
myTest.Go(&myInt);

but when i run gdb and try to step into Go - it does not show any code!
(i did compile with ggdb option)

With best regards - Leon.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019