-----Original Message----- From: markus_schoepflin
Is it just me or is it my compiler (MSVC6SP5)? The following code gives me an error. Whats wrong?
#include
#include <functional> using boost::bind;
void main() { bind(std::greater<int>, _1, _2)(1, 2); }
main.cpp(8) : error C2275: 'std::greater<int>' : illegal use of this type as an expression
TIA, Markus
I'm no expert, but your compiler is telling you exactly whats wrong: you need to create an object to pass to bind. bind(std::greater<int>(), _1, _2)(1, 2); ^^ Joe Swatosh | mailto:Joe.R.Swatosh@usace.army.mil nLink contract employee | mailto:jswatosh@n-link.net US Army Corps of Engineers | Northwestern Division, Portland District CENWP-HDC-P | Hydroelectric Design Center 220 NW 8th Ave | v:(503) 808-4032 Portland, OR 97209 | f:(503) 808-4029 [Non-text portions of this message have been removed]