macro to work ok with ANSI/Unicode strings

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

on Wed Nov 21 2007, John Torjo <john.groups-AT-torjo.com> wrote:
Hi John, This doesn't seem like a Boost or even a C++ libraries question... is there a more appropriate place for it? Regards, -- Dave Abrahams Boost Consulting http://www.boost-consulting.com

Fair enough - I'll post it somewhere else. I just thought some of you macro gurus new this out of the top of your head. Best, John -- http://John.Torjo.com -- C++ expert ... call me only if you want things done right
participants (2)
-
David Abrahams
-
John Torjo