From cf316e023039ac450953d389d4258327cc612eb2 Mon Sep 17 00:00:00 2001 From: Benn Snyder Date: Sat, 18 Jan 2014 13:08:08 -0500 Subject: [PATCH] wrappers/cpp: replace std::make_pair with and more compatible assignment - fixes #339 Signed-off-by: Benn Snyder --- wrappers/cpp/libfreenect.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wrappers/cpp/libfreenect.hpp b/wrappers/cpp/libfreenect.hpp index 98dc0082..631fb959 100644 --- a/wrappers/cpp/libfreenect.hpp +++ b/wrappers/cpp/libfreenect.hpp @@ -199,7 +199,7 @@ namespace Freenect { DeviceMap::iterator it = m_devices.find(_index); if (it != m_devices.end()) delete it->second; ConcreteDevice * device = new ConcreteDevice(m_ctx, _index); - m_devices.insert(std::make_pair(_index, device)); + m_devices[_index] = device; return *device; } void deleteDevice(int _index) {