Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot run VS2015 with Cuda 10.0 #43

Open
Pengxiang-Li opened this issue Jul 12, 2019 · 3 comments
Open

Cannot run VS2015 with Cuda 10.0 #43

Pengxiang-Li opened this issue Jul 12, 2019 · 3 comments

Comments

@Pengxiang-Li
Copy link

Hi,guys! I tried to run BundleFusion in vs2015,but failed because this error happened in my IDE :
Compiler Error C2280 “attempting to reference a deleted function” .
After a survey on the Google I found the diffience between VS2013 and VS2015.
See this:
(https://stackoverflow.com/questions/31264984/c-compiler-error-c2280-attempting-to-reference-a-deleted-function-in-visual)
And this:
(https://stackoverflow.com/questions/30120573/visual-studio-2013-does-not-delete-the-copy-constructor-when-a-user-defined-move)
And this:
https://docs.microsoft.com/en-us/cpp/cpp/explicitly-defaulted-and-deleted-functions?view=vs-2015
When I tried to force the copy constructor = default,it didn't work.And there were lots of error C2280.
Any suggestion for this error?
Best,
Guy

@FishHe
Copy link

FishHe commented May 16, 2020

I found a solution to solve C2280.
'auto _e = e.castBillboard();'
The auto has some bugs. Changing the code into
'const ElementBillboard& _e = e.castBillboard();'
can solve the problem.
@hejinying @rayhero @94zhaofang @Pengxiang-Li

@Junkai-Liu
Copy link

@FishHe Hey,this method only can solve part of problem, But there still many errors C2280.By the way ,How to fix move constructor problem.For example,
D3D11Canvas2D(D3D11Canvas2D&& other) {
m_graphics = nullptr;
swap(*this, other); // dont match the swap fuction definition
}
you know, the move constructor input coefficient is right value, but the swap function definite the input coefficient is left value.This lead to a dont match error, how to fix this problem?

@Junkai-Liu
Copy link

@Pengxiang-Li Hi, have u solved this problem?

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

No branches or pull requests

3 participants