Build error with Visual Studio 2017

  • Posts: 262
3 years 2 months ago - 3 years 2 months ago #1 by brussell
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"

Please Log in or Create an account to join the conversation.

  • Posts: 3665
3 years 2 months ago #2 by crosire
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.

Please Log in or Create an account to join the conversation.