Welcome, Guest.
Username: Password: Remember me

TOPIC: Build error with Visual Studio 2017

Build error with Visual Studio 2017 1 year 9 months ago #1

I've tried to build Reshade with the new VS2017_RC (much better installation process, less bloat on custom installation). I get only one error:
...
5>symbol_table.cpp
5>runtime_objects.cpp
5>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.10.24728\include\xmemory0(840): error C2280: 'std::unique_ptr<reshade::base_object,std::default_delete<_Ty>>::unique_ptr(const std::unique_ptr<_Ty,std::default_delete<_Ty>> &)': attempting to reference a deleted function
5>        with
5>        [
5>            _Ty=reshade::base_object
5>        ]
...

Can you make sense of it, crosire? Maybe it is easy to fix. I would like to stay with VS2017 when possible.

ps: what about a new forum section, sth. like "Source code / Build problems"
Last Edit: 1 year 9 months ago by brussell.
The administrator has disabled public write access.

Build error with Visual Studio 2017 1 year 9 months ago #2

std::unique_ptr doesn't have a copy constructor and it's trying to use one here, which is strange because I use the move constructor in github.com/crosire/reshade/blob/master/s...time_objects.cpp#L15 for this reason. Don't know why 2017 fails to compile that when 2015 can cope with it just fine.
Cheers, crosire =)
The administrator has disabled public write access.