|
Boost Users : |
From: Bruce Trask (Bruce.Trask_at_[hidden])
Date: 2005-03-31 09:58:28
Hi,
I want to express a "string" value at compile time. I am assuming that
I have to go with mpl::vector<char> and then convert it at runtime to
its string format. I also have tried using
struct TestString
{
static const char* getName()
{
return "TestStringName";
}
};
and then have the user specify TestString and then I write my other code
to call getName() on the type at runtime.
Are these two choices the best I can hope for with regard to compile-
time "string" values?
Regards,
Bruce
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