protonscr

[Patch fo submit] ../src/d3d11/d3d11_device.cpp:2186:18: Error : « find_if » is not a member of « std »

dxvkclosed
doitsujin/dxvk#42 · opened 2018-01-31 by rboxeur · updated 2018-01-31 · 0 comments · github
Rrboxeur 2018-01-31 github

Build failed for all commis pushed on 30-Jan2018. please see below

Can you please apply this patch? I am not a developer (there is only one line to add)

Patch

diff -Napur dxvk/src/d3d11/d3d11_device.cpp dxvk-error-fixed/src/d3d11/d3d11_device.cpp
--- dxvk/src/d3d11/d3d11_device.cpp	2018-01-31 01:25:20.272357811 +0100
+++ dxvk-error-fixed/src/d3d11/d3d11_device.cpp	2018-01-31 01:23:44.479356539 +0100
@@ -1,5 +1,5 @@
 #include <cstring>
-
+#include <algorithm>
 #include "d3d11_buffer.h"
 #include "d3d11_class_linkage.h"
 #include "d3d11_context_def.h"

ERROR [Fixed]

david@amdgaming:~/dxvk/build.w32$ ninja
[6/24] Compiling C++ object 'src/d3d11/d3d11_vk@sha/d3d11_device.cpp.obj'.
FAILED: src/d3d11/d3d11_vk@sha/d3d11_device.cpp.obj
/opt/mingw32/bin/i686-w64-mingw32-g++ -Og -gdwarf-2 -Isrc/d3d11/d3d11_vk@sha -Isrc/d3d11 -I../src/d3d11 -I.././include -Isrc/dxvk -I../src/dxvk -Isrc/dxgi -I../src/dxgi -Isrc/dxbc -I../src/dxbc -fdiagnostics-color=always -pipe -Wall -Winvalid-pch -Wnon-virtual-dtor -std=c
1z -O3 -MMD -MQ 'src/d3d11/d3d11_vk@sha/d3d11_device.cpp.obj' -MF 'src/d3d11/d3d11_vk@sha/d3d11_device.cpp.obj.d' -o 'src/d3d11/d3d11_vk@sha/d3d11_device.cpp.obj' -c ../src/d3d11/d3d11_device.cpp
../src/d3d11/d3d11_device.cpp: Dans la fonction membre statique « static D3D_FEATURE_LEVEL dxvk::D3D11Device::GetMaxFeatureLevel() »:
../src/d3d11/d3d11_device.cpp:2186:18: erreur : « find_if » is not a member of « std »
auto entry = std::find_if(s_featureLevels.begin(), s_featureLevels.end(),
^~~
[11/24] Compiling C++ object 'src/d3d11/d3d11_vk@sha/d3d11_util.cpp.obj'.
ninja: build stopped: subcommand failed

Nothing extracted yet.