diff options
author | bartus | 2018-10-31 15:25:57 +0100 |
---|---|---|
committer | bartus | 2018-10-31 15:26:50 +0100 |
commit | 9f770bbc44493fda2bb347dadda5433ae3c6dae4 (patch) | |
tree | 51ae8e6d8953863e17810575da6d375be50169d6 /gcc-8.patch | |
parent | 0a5bdfff47615b8d51685a43339cd671fc4f8438 (diff) | |
download | aur-9f770bbc44493fda2bb347dadda5433ae3c6dae4.tar.gz |
fix unambiguous distance()
downgrade python > python35
Diffstat (limited to 'gcc-8.patch')
-rw-r--r-- | gcc-8.patch | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/gcc-8.patch b/gcc-8.patch new file mode 100644 index 000000000000..39abbec5d63e --- /dev/null +++ b/gcc-8.patch @@ -0,0 +1,12 @@ +diff -r f56582df55f4 accelerators/bvhaccel.cpp +--- a/accelerators/bvhaccel.cpp Sun Jul 23 13:46:05 2017 +0200 ++++ b/accelerators/bvhaccel.cpp Wed Oct 31 15:07:44 2018 +0100 +@@ -146,7 +146,7 @@ + + vector<boost::shared_ptr<BVHAccelTreeNode> >::iterator it = + partition(list.begin()+splits[j], list.begin()+splits[j+1], bind2nd(ptr_fun(bvh_ltf[splitAxis]), splitValue)); +- u_int middle = distance(list.begin(), it); ++ u_int middle = std::distance(list.begin(), it); + middle = max(splits[j]+1, min(splits[j+1]-1, middle)); // Make sure coincidental BBs are still split + splits.insert(splits.begin()+j+1, middle); + } |