Все вопросы: [boost-function]
6 вопросов
Получение возвращаемого значения от функции-члена boost :: thread?
У меня есть рабочий класс, подобный приведенному ниже: class Worker{ public: int Do(){ int ret = 100; // do stuff return ret; } } Он предназначен для выполнения с помощью boost :: thread и boost :: bind, например: Worker worker; boost::function<int()> th_func = bo...
"corrupted double-linked list" on boost::function free()
I am going to try to ask this question without supplying too much source code because all the relevant bits add up to a bunch. The key (I think?) objects involved are using namespace o2scl; typedef MSMTModel<TASensor,PosModel,target2d,ovector,ovector_const_subvector> TA_MSMTModel; typede...
Help with boost bind/functions
I have this function signature I have to match typedef int (*lua_CFunction) (lua_State *L);//target sig Here's what I have so far: //somewhere else... ... registerFunction<LuaEngine>("testFunc", &LuaEngine::testFunc, this); ... //0 arg callback void funcCallback0(b...
C++ Functors and Zero
First a disclaimer, I am replacing a bunch of code which uses boost::function and boost::bind. However, I am moving to a codebase which does not allow rtti. I would like to keep using boost but don't know if there is a way around this restriction. So, I am trying to mimic some of its functional...
Ошибка C2228 при создании объекта boost :: function в списке аргументов конструктора
Приведенный ниже код не компилируется в Visual C ++ 2005. class SomeClass { public: boost::function<void()> func; SomeClass(boost::function<void()> &func): func(func) { } }; void someFunc() { std::cout << "someFunc" << std::endl; } int main() { So...
как работают boost :: function и boost :: bind
Мне не нравится, когда магические ящики разбросаны по всему моему коду ... как именно работают эти два класса, чтобы позволить сопоставить практически любую функцию с функциональным объектом, даже если функция <> имеет совершенно другой параметр, установленный на тот Я перехожу на boost::b...