Well *(ticketGame +i) is the same as ticketGame[i]. The assignement should work if your game is assignable, as ticketGame[i] is a lvalue -- or should be one.
Well, that is a strange requirement you have. I think you won't be able to limit the physical transport rate ovet the network, because of obvious reasons. The only thing I can think of is an...
Maybe I don' understand your question right, but networks don't work that way. If you want to "tunnel" a serial connection through a network, then you write a "server" program taht reads from the...
I've tested your code on WinXP Pro, and it works. However, on Win2k Pro it doesn't, WTSEnumerateSessions() constantly returns error 1151 (The specified program is not a Windows or MS-DOS...
Am am of course aware that boost::serialization offers non-intrusive serialization for a large number of well known constructs, like std::vector or boost::shared_ptr.
Has any of you found a generic method of making boost::any serializable? The net doesn't provide anything more than a couple of unfinished ideas, as far as I have searched.
Assuming that you use 16 bits for such a number, then you will use 12000 bytes disk storage. The os will allocate at least one block for that -- so you spend something between 12 k and 32k or so....
Which is not that bad, actually. You mostly won't need 'export' for template metaprogramming.
Herb Sutter has made some pertinent comments on 'export' -- you might want to read it if you come across...
Very interesting. Google certainly has some power many people oversee. Put it this way: many people use Google as a universal information source and tend to belive in the results Google returns for...
What's wrong with templates? The standard library is full of them and they are one of the major strengthes of C++. And my example won't involve a more extensive use of templates than it does when...
It's quite simple. In my example, the "parse" function simply prints the input, but it could do whatever. It works with a file, with the console or a stringstream:
No, they are not. A long long can have 64 bits, but it isn't required to. The _int64 is a type that always has 64 bits. I'm unsure whether there are standard types with fixed bit sizes (I think there...
The global namespace is "the area" surrounding any namespaces declared explicitely, regardless whether these are named or not. The purpose of namespaces is to group together things that logically...
There are two issues when converting strings to numeric types: correctness and performance. The problem is that many people seem to concentrate on the latter and to forget correctness.
I came around a construct that works, but is a bit strange, to put it mildly. I was wondering if it is legal. I didn't dive into the Standard -- I didn't have the time... Here it is: