Oh, okay. Then check the books thread.
If you haven't checked out Accelerated C++, then you should probably do that too.
It doesn't cover just the basics; it covers a lot of more and a lot of it is...
Type: Posts; User: Elysia
Oh, okay. Then check the books thread.
If you haven't checked out Accelerated C++, then you should probably do that too.
It doesn't cover just the basics; it covers a lot of more and a lot of it is...
Not much about boost, sadly.
There is one book about boost, I think. Can't remember its name. It's somewhat old and doesn't cover that much, but it's about the only one available or so. A search on...
It doesn't work that way! Just pass what boost::bind returns directly to your function.
You need to download the boost package, yes, but you don't need to install any dlls to use it. However, you...
Oh? Then let's borrow the power of boost::bind a little more:
example( boost::bind(&ExClass::func, f, 10) );
Notice that I put a number in there as well.
Now
func();
Simply will work.
Praised...
Ah, that's because the function takes an int, but we don't pass one. You can fix it like:
(Class.*FncPtr)(10);
func(10);
Alright, cool, no worries about that then.
Aww, come on. It's not that big and complicated.
So this actually compiles, where you try to return "void"?
I'm just concerned about returning void from the FncPtr call.
That's why there are two overloads! One for const, one for non-const.
It's critical if we pass the object through a const...
In that case, I'll throw in another, better example:
class ExClass
{
public:
int func(const int& z); //***
};
int ExClass::func(const int& z) { return z; }
Two examples.
One using boost, the other without boost.
class ExClass
{
public:
int func(const int& z); //***
};
int ExClass::func(const int& z) { return z; }