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

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

Closed
rboxeur opened this issue Jan 31, 2018 · 0 comments

Comments

@rboxeur
Copy link

rboxeur commented Jan 31, 2018

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

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

1 participant