Jens Theisen wrote:

"Gavin Deane" <de*********@ho tmail.comwrites :

So, just like any other integral type, if you want to know the actual

size in your implementation [...]

I quote from my last posting:

I think I was quite explicit in my posting that I'm not wondering

about how big it is, but where it's defined.

You just told me that's it's not defined in the language:

, you need to consult your implementation.

sizeof L'x' is one easy way to do that. The answer may be different for

diifferent implementations .

something which I have already stated in my first posting!

So you already knew that the language does not specify the exact number

of bits or bytes or octets or whatever in a wchar_t. And you already

know that this implies that the size of wchar_t might be different in

different implementations of the language. Since the suggestion that

one way of finding out the size of wchar_t in your implementation is to

do sizeof L'x' didn't seem to satisfy you, you presumably aren't asking

"How do I find out the size of wchar_t in my implementation? "

You originally asked "does anyone know which layer is responsible for

defining the size of

wchar_t?". I don't know what that question means. What do you mean by

"layer"? The only sensible question I can think of in this context is,

"How do I find out the size of wchar_t in my implementation? ". So when

I read your post, I couldn't understand your question as you wrote it,

but I assumed you were asking "How do I find out the size of wchar_t in

my implementation? " because that is the only question I could think

that you might be trying to ask.

Is that your question? Or is it something else? Or has it been answered

already?

Gavin Deane