static *string manipulation by compiler?
From: Bernd Prager (bernd_at_prager.ws)
Date: 10/31/03
- Next message: Chris \( Val \): "Re: C++: Getting Type of a Construct"
- Previous message: Martijn Lievaart: "Re: C++: Getting Type of a Construct"
- Next in thread: Chris \( Val \): "Re: static *string manipulation by compiler?"
- Reply: Chris \( Val \): "Re: static *string manipulation by compiler?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 31 Oct 2003 11:39:55 -0500
I would like to use an inline function to chack the
version number of a class:
/** returns version number of this class */
inline static char* Version() {
static *version = "$Revision: 1.2 $";
return version;
}
But I just want to have the number "1.2" and not the entire string
that CVS generates. Is there a way to tell the compiler to
manipulate the string before assigning it to "*version"?
Thanks,
-- B.
- Next message: Chris \( Val \): "Re: C++: Getting Type of a Construct"
- Previous message: Martijn Lievaart: "Re: C++: Getting Type of a Construct"
- Next in thread: Chris \( Val \): "Re: static *string manipulation by compiler?"
- Reply: Chris \( Val \): "Re: static *string manipulation by compiler?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]