error C2143: syntax error : missing ',' before '<'

The code below don't compile in vs 2012. In line 4 I got an error C2143: syntax error : missing ',' before '<'. Can somebody help me to fix it. I would be very appreciate.

ps. dont' focus on case insensitive, i have delete something to make the code simpler.


template<typename Ty>
struct case_insensitive_less : public binary_function<Ty, Ty, bool>{
    bool operator()(Ty const& left, Ty const& right) const
        return (left < right);

int main(){}


You need the std namespace:


Note that std::binary_function is deprecated in C++11. If you have C++11 support, consider using std::function and/or lambdas.

Need Your Help

Get locations nearby request.location with ruby/rails geocoder gem

ruby-on-rails ruby gem

How would you get locations that are nearby your current location with geocoder gem for ruby on rails 3.2.x?

Run commands through Shell Scripts in linux

linux backup sh cp

I'd like to set up a file that executes these two commands when run:

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.