Browse Source

Add <tuple> include.

tags/v1.0.0
Andrew Belt 6 years ago
parent
commit
e4a4722de5
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      src/engine/Engine.cpp

+ 2
- 1
src/engine/Engine.cpp View File

@@ -9,6 +9,7 @@
#include <condition_variable>
#include <mutex>
#include <atomic>
#include <tuple>
#include <x86intrin.h>


@@ -761,7 +762,7 @@ void Engine::removeParamHandle(ParamHandle *paramHandle) {
ParamHandle *Engine::getParamHandle(int moduleId, int paramId) {
// Don't lock because this method is called potentially thousands of times per screen frame.

auto it = internal->paramHandleCache.find({moduleId, paramId});
auto it = internal->paramHandleCache.find(std::make_tuple(moduleId, paramId));
if (it == internal->paramHandleCache.end())
return NULL;
return it->second;


Loading…
Cancel
Save