$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
From: Brock Peabody (brock.peabody_at_[hidden])
Date: 2003-11-18 10:53:33
> -----Original Message-----
> From: boost-bounces_at_[hidden] [mailto:boost-bounces_at_[hidden]]
> On Behalf Of Brian McNamara
> <wishful thinking>
>
> If only "strings" were legal "template value parameters" in C++. Then
> we could write code like
>
> typedef regexp< "(hello )+world" >::type MyRegex;
> ... MyRegex::match( someString ) ...
>
> Aaaaaah. :)
>
> </wishful>
If you don't mind pain you could have:
typedef regexp<vector_c<
char,
'(','h','e','l','l','o',' ',')','+','w','o','r','l','d'
> >::type MyRegex;
I wrote a library for input masking that took 'compile time strings' this
way, just for fun.
Brock