|
Boost Users : |
Subject: [Boost-users] self-referential boost functions
From: Adam Crain (jadamcrain_at_[hidden])
Date: 2012-06-28 10:01:34
Inquiring as to whether this is possible or if there is a better pattern
for simulating this behavior...
Is it possible for boost::function to be self referential? I.e. how do I
simulate behavior like the following:
typedef boost::function<Func (int)> Func;
A function that does something mutable and then returns the next function
to be called or an empty function.
thanks,
Adam
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net