[deal.II] Binding Step-6 class with Boost.Python gives an compilation error: "use of deleted function"

2020-06-14 Thread Oleg Kmechak
Hello All, I am trying to port C++ program to Python using Boost.Python. Have done already a lot of work with porting of classes(mostly based on std) and it works as expected. But currently strugling with the last one class to port(class Solver), which is almost the same as step-6. Some

[deal.II] Re: Binding Step-6 class with Boost.Python gives an compilation error: "use of deleted function"

2020-06-14 Thread Oleg Kmechak
Looks like I got solution. Problem is that Boost.Python is trying to construct some assignment operator (operator=). While it is trying to do this, its traping do deleted methods of DoFHandler and Triangulation. Solution(or workaround in my case) is to use option boost::noncopyable:

Re: [deal.II] Re: Binding Step-6 class with Boost.Python gives an compilation error: "use of deleted function"

2020-06-14 Thread Wolfgang Bangerth
On 6/14/20 7:09 PM, Oleg Kmechak wrote: Solver(Model *model): dof_handler(triangulation) { model = model; Oleg, I have not tried too carefully to look at what you're doing, but this line doesn't look right. It is equivalent to