Opened 21 years ago

Closed 20 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 by Ralf W. Grosse-Kunstleve, 20 years ago

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