Modify

Opened 16 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.


Attachments (0)

Change History (1)

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

Status: assignedclosed

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Ralf W. Grosse-Kunstleve.
The resolution will be deleted.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.