Ticket #29 (new defect)

Opened 4 months ago

Last modified 1 month ago

bad implementation of dba::stdSet collection filter

Reported by: olq Assigned to: zork
Priority: major Milestone: future
Component: Archive interface Version: devel
Keywords: Cc:

Description

dba::stdSet collection filter doesn't work for sets which have defined comparator. Sample bellow, cause compiler error:

class MyClass : public dba::Storeable {
  DECLARE_STORE_TABLE();
//(...)
  std::set<MyMemberClass, MyMemberClassesComparator> mMembers;
//(...)
};

BEGIN_STORE_TABLE(MyClass, dba::Storeable, "myclass_table")
//(...)
  BIND_COL(MyClass::mMembers, dba::stdSet<MyMemberClass>, "myclass_id")
//(...)
END_STORE_TABLE();

Change History

10/22/08 11:11:28 changed by zork

  • version changed from 1.2.x to devel.
  • milestone changed from 1.4 to future.

This can't be implemented using store table macros and have to wait for store table redesign, which is planned for 2.0