$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
From: Cory Nelson (phrosty_at_[hidden])
Date: 2005-07-14 18:50:23
I have a function like:
template<typename CharT>
void foo() {
std::basic_string<CharT> str;
...
if(str=="bar")
...
}
I'd like to check at compile time if CharT is a char or wchar_t to
specialize the string used to compare- MPL seems like the thing I
would use for this but documentation on doing this seems scarce.
Could someone give me an example?
-- Cory Nelson http://www.int64.org