Skip to content

Commit

Permalink
Merge pull request #367 from Dekken/leak
Browse files Browse the repository at this point in the history
shared_ptr vibilitiy required for pointer tracking
  • Loading branch information
PhilipDeegan authored May 29, 2019
2 parents b2052c8 + 2883b33 commit eec1ac5
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
7 changes: 0 additions & 7 deletions lib/swig/tick/hawkes/simulation/hawkes_kernels.i
Original file line number Diff line number Diff line change
@@ -1,12 +1,5 @@
// License: BSD 3 clause

%include <std_shared_ptr.i>
%shared_ptr(HawkesKernel);
%shared_ptr(HawkesKernelExp);
%shared_ptr(HawkesKernelSumExp);
%shared_ptr(HawkesKernelPowerLaw);
%shared_ptr(HawkesKernelTimeFunc);
%shared_ptr(HawkesKernel0);

class HawkesKernel {
public:
Expand Down
7 changes: 7 additions & 0 deletions lib/swig/tick/hawkes/simulation/hawkes_simulation_module.i
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@

%include tick/base/defs.i
%include tick/base/serialization.i
%include <std_shared_ptr.i>
%shared_ptr(HawkesKernel);
%shared_ptr(HawkesKernelExp);
%shared_ptr(HawkesKernelSumExp);
%shared_ptr(HawkesKernelPowerLaw);
%shared_ptr(HawkesKernelTimeFunc);
%shared_ptr(HawkesKernel0);

%{
#include "tick/base/tick_python.h"
Expand Down
2 changes: 1 addition & 1 deletion lib/swig/tick/solver/sto_solver.i
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
%}

%include "tick/array/array_module.i"
%include "tick/base_model/model.i"
%include "tick/base_model/base_model_module.i"
%include "tick/prox/prox_module.i"

%template(IntVector) std::vector<int>;
Expand Down

0 comments on commit eec1ac5

Please sign in to comment.