|
Boost Users : |
From: Arno Schödl (aschoedl_at_[hidden])
Date: 2006-10-26 02:44:41
Hello,
__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<x, n>::value // cuts prefix of length n off char array x
It would be nice if the compiler would not even store the whole path in the executable, but only the distinguishing suffix. Any ideas how to start?
TIA,
Arno
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net