Opened 17 years ago

Closed 15 years ago

#14 closed Feature Requests (Out of Date)

Support for static data members

Reported by: squan Owned by: Ralf W. Grosse-Kunstleve
Milestone: Component: python USE GITHUB
Version: None Severity:
Keywords: Cc:

Description

It is not possible to expose a C++ class' static
data members to Python.

Trying something like

class foo {
 public:
  static float bar;
};

python::class_builder<foo>foo_class(this_module,"foo");

foo_class.def_read_write(&foo::bar, "foobar");

will give a compile error.


Change History (1)

comment:1 Changed 15 years ago by Ralf W. Grosse-Kunstleve

Status: assignedclosed
Note: See TracTickets for help on using tickets.