Bug #158
property_attributes does not own getter/setter
| Status: | New | Start: | 10/31/2009 | |
| Priority: | Normal | Due date: | ||
| Assigned to: | % Done: | 0% |
||
| Category: | Core | |||
| Target version: | 0.9.1 | |||
| Severity: | Normal |
Description
The getter/setter member of property_attributes (see source:include/flusspferd/property_attributes.hpp ) is of type boost::optional<function const&>. Thus the function object is not owned by property_attributes and code like this is wrong:
property_attribues foo() {
function foo = ...;
return property_attributes(no_property_flag, foo);
}
property_attributes should copy the function object (=> own it).
History
Updated by Aristid Breitkreuz 236 days ago
- Priority changed from Urgent to Normal
- Severity changed from Critical to Normal