-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix windows build failure by avoiding VLA's
I guess the compiler on Windows is more strict about disallowing variable-length arrays, while GCC and Clang have have extensions to the C++ standard that allow them. Use a `std::vector` instead to avoid the errors on Windows. Should fix the following: rhs_functions_math.cpp(2134): error C2131: expression did not evaluate to a constant rhs_functions_math.cpp(2134): note: failure was caused by a read of a variable outside its lifetime rhs_functions_math.cpp(2134): note: see usage of 'count' rhs_functions_math.cpp(2161): error C3863: array type 'Point [count]' is not assignable
- Loading branch information
1 parent
67ca6c3
commit 9f1583a
Showing
1 changed file
with
21 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters