18 years, 4 months ago
Highlights
Thanks. static_cast<void (*)(int)>(&Foo) seems to work , but that is certainly more obfuscated than it should be IMHO.
18 years, 4 months ago
How could I make this work? void foo( const char * ){} void foo( int ){} int main( int argc, char *argv[] ) { vector<int> ints; for_each( ints.begin(), ints.end(), &foo );…
18 years, 4 months ago