Jump to content
Sign in to follow this  
  • entries
  • comments
  • views

Waiting for the new standard

Sign in to follow this  


I was attempting some generic programming (specifically trying to modify some template code that worked on function pointers to accept more generic function objects) and I ran across a situation where I needed the type of a result of a potentially overloaded function call. Even though, given the symbol name and the types of the arguments, the result type can be determined at compile type, it seems to be inaccessible in the general case. I spent something like an hour trying to figure out how boost::bind solved the problem until I realized that it didn't. I probably should learn to read the documentation before jumping directly into source code.

Here's hoping that typeof makes it into the next revision of the C++ standard.
Sign in to follow this  


Recommended Comments

There are no comments to display.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!