peter koch wrote:
testga...@gmail.com skrev:
Kai-Uwe Bux wrote:
te*******@gmail.com wrote:
>
Would it be safe to assume that if a program is including stl's
wstring/string
#ifdef _XSTRING_ will be valid?
>
No.
>
or is this STL implementation dependent?
>
The standard does not mention any _XSTRING_ macro.
[snip]
First - dont toppost.
Sorry, first timer
Is there another way I could test for the existence of
std::string/wstring?
What do you mean?
#include <stringwill provide you with std::string and std::wstring.
If not, you're not having a compliant compiler (stronger wording would
be appropriate!!).
/Peter
Does the standard mention anything about _STD?
I want to be able to do the following:
Under Defines.h -
#ifdef _XSTRING_
typedef std::string UNIQUEKEY
#endif
Applications that don't use stl, can still user the Defines.h files
(for other typedefs/defines), those who do use stl will be able to work
with UNIQUEKEY
Hope I was clear this time,
Thanks