boost-bind Questions
1
Solved
class A
{
bool OutofRange(string& a, string& b, string c);
void Get(vector <string>& str, string& a, string& b);
}
void A::Get(vector <string>& str, string&am...
Breed asked 11/11, 2009 at 14:52
3
Solved
bool pred(int k, int l, int num1, int num2)
{
return (num1 < num2);
}
int main()
{
vector <int> nums;
for (int i=50; i > 0; --i)
{
nums.push_back(i);
}
std::sort (nums.begin(), ...
Susceptive asked 4/11, 2009 at 22:46
2
Solved
So I have this code:
#include "boost_bind.h"
#include <math.h>
#include <vector>
#include <algorithm>
double foo(double num, double (*func)(double)) {
return 65.4;
}
int main(...
Owl asked 17/8, 2009 at 17:4
6
Solved
I want to call the base class implementation of a virtual function using a member function pointer.
class Base {
public:
virtual void func() { cout << "base" << endl; }
};
class Deri...
Sestertium asked 30/7, 2009 at 14:48
2
Solved
I am confused as to what boost::bind does when we bind to member variables. With binding to member function, we essentially create a function object, and then call it passing to it the arguments th...
Aceves asked 21/7, 2009 at 10:31
4
Solved
I have a one-dimensional function minimizer. Right now I'm passing it function pointers. However many functions have multiple parameters, some of which are held fixed. I have implemented this using...
Knoxville asked 25/6, 2009 at 15:49
1
Solved
I have no idea if this is possible, but if it is, what would the syntax look like?
If not possible, why not?
Aspirate asked 19/6, 2009 at 21:8
2
Solved
I am using boost::signal in a native C++ class, and I now I am writing a .NET wrapper in C++/CLI, so that I can expose the native C++ callbacks as .NET events. When I try to use boost::bind to take...
Politicking asked 2/10, 2008 at 18:10
1
Solved
I dislike having magic boxes scattered all over my code...how exactly do these two classes work to allow basically any function to be mapped to a function object even if the function<> has a com...
Belgrade asked 9/2, 2009 at 8:28
© 2022 - 2024 — McMap. All rights reserved.