Waiting for the new standard

Published August 01, 2004
Advertisement
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.
Previous Entry ...
0 likes 0 comments

Comments

Nobody has left a comment. You can be the first!
You must log in to join the conversation.
Don't have a GameDev.net account? Sign up!
Profile
Author
Advertisement

Latest Entries

New bug to me

1709 views

Week/Class 9

1540 views

Week/Class 8

1581 views

Week/Class 7

1636 views

The promised files

1869 views

Week/Class 6

1330 views

Week/Session 5

1383 views

Week/Session 4

1326 views

On the soapbox

1424 views

Week/Session 3

1303 views
Advertisement