$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
From: Cory Nelson (phrosty_at_[hidden])
Date: 2008-03-06 05:18:04
Hi guys, ran across a question that I'd have thought would be at least
common enough to get a note in the docs, but I can't find it there.
Is it safe to set a function from within a call on the function?
boost::function<void()> f;
void func2();
void func1() {
f = func2;
}
void main() {
f = func1;
f();
}
-- Cory