1
Support / Re: Unable to debug under windows; Suggestions?
« on: April 19, 2011, 02:13:55 pm »
Please attach a backtrace once you get the program to crash inside your debugger. Then we'll be able to see where the problem originates.
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
If i am not mistaken ++i is an rvalue as well.
It's just about whether i is incremented before setting j or afterwards, isn't it?
A little offtopic:Yes! Think about the return value -- "i++" is an rvalue, and theoretically there needs to be a copy, involving a constructor and all that. Perhaps if you're lucky the compiler will realise that the return value isn't needed in something like a for loop, but you might as well write it explicitly and demonstrate that your code is fully intentional. (The same applies to iterators.)
Is there a difference between ++i and i++ except for when the incrementation is done?
typedef void (voidF*)();
typedef std::pair<void*, voidF> callbackType
As for compatibility with 1.4 it should be enough to change the Protocol version from 9 to 10. No new client side packets have been added as far as i can tell.
I think most (all?) contributions are done via pull requests on Github.
The most comprehensive documentation of the protocol that I know of is located here:
http://mc.kev009.com/Protocol
If i am not mistaken, Mineserver was developed with that description in mind.
The question is, are you good enough to even make Mineserver compile?