Okay, thanks. C++98 sounds familiar.
BTW, you're going to have to help this guy. It's kind of the blind leading the blind at this point. :(
Type: Posts; User: oogabooga
Okay, thanks. C++98 sounds familiar.
BTW, you're going to have to help this guy. It's kind of the blind leading the blind at this point. :(
c++0x sounds like they were hoping it would come out before 2010. :)
What is the pre-c++11 version? I don't know what to call it.
Here's an old-style C++ version.
// g++ -Wall lessthan.cpp
#include <iostream>
#include <vector>
#include <algorithm>
#include <cstring>
It's C++11, so with g++:
g++ -std=c++11 -Wall lessthan.cpp
Here's a little example that works.
If you still have problems, you may have to post more code.
// g++ -std=c++11 -Wall lessthan.cpp
#include <iostream>
#include <vector>
#include...
I thought you were defining it outside of the class. But if it's in the class then get rid of both "inline" and "fileData::". Members defined in the class are automatically inline and connected to...
The last one of your variations is essentially correct, but you're missing the fileData:: to attach it to the class!
bool inline fileData::operator<(const fileData& f) const
{
return...