You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
@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?
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
The text was updated successfully, but these errors were encountered: