Re: [Boost-users] Using MPL to cut array?
26 Oct
2006
26 Oct
'06
3:22 p.m.
-----Original Message----- From: boost-users-bounces@lists.boost.org [mailto:boost-users- bounces@lists.boost.org] On Behalf Of Arno Schödl Sent: Thursday, October 26, 2006 2:45 AM To: boost-users@lists.boost.org Subject: [Boost-users] Using MPL to cut array?
__FILE__ is a macro for the path to the current source file. I would like to remove the common prefix (like "c:\dev\my_program\") from it, which is in a preprocessor macro SOLUTIONDIR. Is there a metaprogramming way to do that?
So the class TSuffix should be used like this:
TSuffix
::value // cuts prefix of length n off char array x
[Nat] ? Is MPL needed? For a classic const char[] string literal, wouldn't (__FILE__ + n) get you what you want?
6594
Age (days ago)
6594
Last active (days ago)
0 comments
1 participants
participants (1)
-
Nat Goodspeed