Skip to content
This repository has been archived by the owner on Oct 2, 2020. It is now read-only.

compile error on VC++ 2015 #33

Open
alessandroAM opened this issue May 3, 2020 · 4 comments
Open

compile error on VC++ 2015 #33

alessandroAM opened this issue May 3, 2020 · 4 comments

Comments

@alessandroAM
Copy link

Hello, all the header files fail to compile to lines that use this declaration:
static_assert(std::is_floating_point<Vector2::Type>::value, "Type must be floating-point");

with the following error:
'std::is_floating_point': 'dt::Vector2::Type' is not a valid template type argument for parameter '_Ty' d:\programming\delaunay-triangulation-master\dt_test\dt_test\vector2.h

Any idea how to fix it? Thanks

@bl4ckb0ne
Copy link
Owner

Could you give me more context please? Is this from the example, the test or another file?

@alessandroAM
Copy link
Author

Hello, sorry for being vague. The error is related to header files, for example the vector2.h one.
The line
"static_assert(std::is_floating_point<Vector2::Type>::value, "Type must be floating-point");"
will issue the error mentioned above. I'm using VC++ 2015.
If you want I can send the whole solution file to try...
Also, and more important, is there any way to make it support 3D delaunay triangulation?
Thanks

@bl4ckb0ne
Copy link
Owner

What I meant was where did this happened. Is this from a piece of code you wrote, or is this from compiling the tests or the example?

@alessandroAM
Copy link
Author

It's indeed from the original project files.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants