Names with spaces

I was previously talking about this in a seperate thread, but it was nothing to do with the topic so here's my question. Is it possible to make a class whose name is more than one word? I'm pretty sure it must be possible because classes like unsigned int and signed char exist, but I have no idea how to do it.
> Is it possible to make a class whose name is more than one word?

Yes, as long as we do not try to separate the words with spaces.

For instance, class uniform_int_distribution is fine; class uniform int distribution is not.
So how do built in classes like unsigned int and signed char work then?
unsigned is a separate keyword. you can't use it to modify your own classes. From reading the other thread, I'm not sure why you would want or need to.
unsigned, signed, if, while, int etc. are keywords.

Tokens that are keywords are given special treatment by the parser.
Okay, thanks. I was just basically wanting my version of int to fit in with the others so than it would be limtied int not limited_int. Also, I really don't like underscores though I get that they are necessary and I was just wondering whether it was possible to use an escape character before the space or something like that so that it could be done. It wasn't for any particularly important reason other than curiosity.
Topic archived. No new replies allowed.