K
KD
Hi All,
Can anyone please tell me if it is possible to bind the assignment
operator using STL or boost?
Here's some naive pseudo code which does not even compile but may help
clarify my intent:
{
bool value = true;
function f = bind(&operator=, ref(value), false);
f(); // Sets 'value' to false.
}
Thanks,
Keith
Can anyone please tell me if it is possible to bind the assignment
operator using STL or boost?
Here's some naive pseudo code which does not even compile but may help
clarify my intent:
{
bool value = true;
function f = bind(&operator=, ref(value), false);
f(); // Sets 'value' to false.
}
Thanks,
Keith