Skip to content

Commit 371c70f

Browse files
committed
dotnet: fix constraint solver wrapper
1 parent 1d9299e commit 371c70f

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

ortools/constraint_solver/csharp/constraint_solver.i

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ class RegularLimitParameters;
5959
#include "ortools/constraint_solver/search.h"
6060
#include "ortools/constraint_solver/sequence_var.h"
6161
#include "ortools/constraint_solver/variables.h"
62-
6362
#include "ortools/constraint_solver/search_limit.pb.h"
6463
#include "ortools/constraint_solver/solver_parameters.pb.h"
6564

@@ -1026,11 +1025,13 @@ namespace operations_research {
10261025
%include "ortools/constraint_solver/sequence_var.h"
10271026
%include "ortools/constraint_solver/variables.h"
10281027

1028+
// Define templates instantiation after wrapping.
10291029
namespace operations_research {
1030-
%template(RevInteger) Rev<int64_t>;
1030+
%template(RevInteger) Rev<int>;
1031+
%template(RevLong) Rev<int64_t>;
10311032
%template(RevBool) Rev<bool>;
10321033
typedef Assignment::AssignmentContainer AssignmentContainer;
10331034
%template(AssignmentIntContainer) AssignmentContainer<IntVar, IntVarElement>;
10341035
%template(AssignmentIntervalContainer) AssignmentContainer<IntervalVar, IntervalVarElement>;
10351036
%template(AssignmentSequenceContainer) AssignmentContainer<SequenceVar, SequenceVarElement>;
1036-
}
1037+
} // namespace operations_research

0 commit comments

Comments
 (0)