$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
From: Jesse Jones (jesjones_at_[hidden])
Date: 2001-05-02 20:04:26
I've haven't looked at the new stuff closely but I do have a couple
of comments:
1) I really want to be able to use operator== to test if two
callbacks have the same value. I have a lot of code that does stuff
like this:
class ITimer {
public:
virtual void AddTimer(function<void> callback, MilliSecond interval) = 0;
virtual void RemoveTimer(function<void> callback) = 0;
};
This is nice and simple, but requires support for equality tests...
2) It'd be nice if there was a way
// About
function<void> action(this, &CApp::DoAbout);
handler->RegisterCommand(kAboutCmd, action, kDisabledIfDialog, this);
// Delete Color Formula
action.Set(this, &CApp::DoDeleteColorFormula);
function<SCommandStatus> enabler(this,
&CAppMenuHandler::DoEnableDeleteColorFormula);
handler->RegisterCommand(L"Delete Color Formula", action, enabler, this);
// Delete Palette
action.Set(this, &CApp::DoDeletePalette);
enabler.Set(this, &CApp::DoEnableDeletePalette);
handler->RegisterCommand(L"Delete Palette", action, enabler, this);