Skip to content

Commit e791ccd

Browse files
committed
constraint_solver: remove ToInt64Vector from .Net wrapper
note: already NOT available in python and java
1 parent 0886246 commit e791ccd

2 files changed

Lines changed: 4 additions & 11 deletions

File tree

ortools/constraint_solver/csharp/ConstraintSolverTests.cs

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -20,17 +20,6 @@ namespace Google.OrTools.Tests
2020
{
2121
public class ConstraintSolverTest
2222
{
23-
[Fact]
24-
public void IntVectorToInt64Vector()
25-
{
26-
int[] input = { 5, 11, 17 };
27-
long[] output = ToInt64Vector(input);
28-
Assert.Equal(3, output.Length);
29-
Assert.Equal(5, output[0]);
30-
Assert.Equal(11, output[1]);
31-
Assert.Equal(17, output[2]);
32-
}
33-
3423
[Fact]
3524
public void IntVarConstructor()
3625
{

ortools/constraint_solver/csharp/constraint_solver.i

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,10 @@ DEFINE_ARGS_TO_R_CALLBACK(
234234
// Renaming
235235
namespace operations_research {
236236

237+
// This method causes issues with our std::vector<int64_t> wrapping. It's not really
238+
// part of the public API anyway.
239+
%ignore ToInt64Vector;
240+
237241
// Decision
238242
%feature("director") Decision;
239243
%unignore Decision;

0 commit comments

Comments
 (0)