version 0.4.1
scalarwrapper.hh File Reference

Provides a wrapper for scalar types to support passing by reference in Python bindings. More...

#include <dune/common/referencehelper.hh>

Go to the source code of this file.

Classes

class  ScalarWrapper< T >
 A wrapper class for scalar types to facilitate reference passing in Python bindings. More...
 

Detailed Description

Since Python does not support passing python float by reference to a double&, we have to wrap everything. See also: https://pybind11.readthedocs.io/en/stable/faq.html#limitations-involving-reference-arguments