Skip to content

Commit 5325d99

Browse files
authored
Merge pull request #1269 from johnhaddon/randomShuffleWoes
Avoid `std::random_shuffle()`
2 parents 626e9cf + 290be65 commit 5325d99

File tree

19 files changed

+46
-1507
lines changed

19 files changed

+46
-1507
lines changed

.github/workflows/main.yml

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,11 +156,14 @@ jobs:
156156
157157
- name: Build
158158
run: |
159-
scons -j 2 install BUILD_TYPE=${{ matrix.buildType }} OPTIONS=${{ matrix.options }} CXXSTD=c++14 BUILD_CACHEDIR=sconsCache
159+
scons -j 2 install BUILD_TYPE=${{ matrix.buildType }} OPTIONS=${{ matrix.options }} BUILD_CACHEDIR=sconsCache
160+
# Copy the config log for use in the "Debug Failures" step, because it
161+
# gets clobbered by the `scons test*` call below.
162+
cp config.log buildConfig.log
160163
161164
- name: Test
162165
run: |
163-
scons ${{ matrix.tests }} BUILD_TYPE=${{ matrix.buildType }} OPTIONS=${{ matrix.options }} CXXSTD=c++14 BUILD_CACHEDIR=sconsCache
166+
scons ${{ matrix.tests }} BUILD_TYPE=${{ matrix.buildType }} OPTIONS=${{ matrix.options }} BUILD_CACHEDIR=sconsCache
164167
env:
165168
IECORE_RTLD_GLOBAL: 0
166169

@@ -185,3 +188,17 @@ jobs:
185188

186189
- name: Limit cache size
187190
run: python ./.github/workflows/main/limitCacheSize.py
191+
192+
- name: Debug Failures
193+
run: |
194+
# Give MacOS crash reporter time to do its thing
195+
sleep 20
196+
# Print SCons logs and MacOS crash logs
197+
shopt -s nullglob
198+
for logFile in buildConfig.log ~/Library/Logs/DiagnosticReports/*.crash
199+
do
200+
echo $logFile
201+
cat $logFile
202+
done
203+
shell: bash
204+
if: failure()

SConstruct

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ o.Add(
9393
o.Add(
9494
"CXXSTD",
9595
"The C++ standard to build against.",
96-
"c++11"
96+
"c++17"
9797
)
9898

9999
o.Add(

include/IECore/DataConversion.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,12 @@
3838
#include "boost/static_assert.hpp"
3939
#include "boost/type_traits/integral_constant.hpp"
4040

41-
#include <functional>
42-
4341
namespace IECore
4442
{
4543

4644
/// Base class for data conversions
4745
template<typename F, typename T>
48-
struct DataConversion : public std::unary_function<F, T>
46+
struct DataConversion
4947
{
5048
typedef F FromType;
5149
typedef T ToType;

include/IECore/IECore.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ IECORE_API bool withFreeType();
8181
/// getting their elements. This allows coding compatible with both the Imath types
8282
/// and other 3rd party math types. The VectorOps.h and MatrixOps.h files then
8383
/// provide common operations on top of this lower level access, allowing classes
84-
/// such as \link IECore::KDTree KDTree \endlink and \link IECore::PerlinNoise PerlinNoise \endlink to operate both on native IECore types and
84+
/// such as \link IECore::KDTree KDTree \endlink to operate both on native IECore types and
8585
/// application specific types such as the Maya MPoint and MVector classes.
8686
///
8787
/// The VectorOps.h and MatrixOps.h code provides a pretty ugly c-style function
@@ -217,8 +217,6 @@ IECORE_API bool withFreeType();
217217
/// \link IECore::KDTree KDTree \endlink and \link IECore::BoundedKDTree BoundedKDTree \endlink
218218
/// structures allow for fast spatial queries on large data sets.
219219
///
220-
/// \link IECore::PerlinNoise PerlinNoise \endlink implements the classic noise function for arbitrary dimensions.
221-
///
222220
/// Fast closest point and ray intersection queries can be performed on some of the classes derived
223221
/// from \link IECore::Primitive Primitive \endlink, using an instance of a
224222
/// \link IECore::PrimitiveEvaluator PrimitiveEvaluator \endlink.

include/IECore/PerlinNoise.h

Lines changed: 0 additions & 155 deletions
This file was deleted.

0 commit comments

Comments
 (0)