Skip to content

Commit

Permalink
wrappers/cpp: replace std::make_pair with and more compatible assignm…
Browse files Browse the repository at this point in the history
…ent - fixes #339

Signed-off-by: Benn Snyder <benn.snyder@gmail.com>
  • Loading branch information
piedar committed Jan 18, 2014
1 parent cd5de90 commit cf316e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wrappers/cpp/libfreenect.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<int, FreenectDevice*>(_index, device));
m_devices[_index] = device;
return *device;
}
void deleteDevice(int _index) {
Expand Down

0 comments on commit cf316e0

Please sign in to comment.