|
Boost : |
From: John Torjo (john.groups_at_[hidden])
Date: 2007-11-21 04:11:50
Hi all,
I need some C help :
I want to create a macro that will expand to char* string or wchar_t*
string, depending on the application's *char_type*.
This is what I have so far:
// the very short version
#define BOOST_LOG_STR(x) ( x, L ## x)
The problem I have is when using it this way:
BOOST_LOG_STR("this " " and that");
It gives me the eror - concatenating wide and narrow strings. How do I
get 'round that? Thanks!
Best,
John
-- http://John.Torjo.com -- C++ expert ... call me only if you want things done right
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk