0 Members and 1 Guest are viewing this topic.
#ifndef SFEKE_OPERATOR_LESS#define SFEKE_OPERATOR_LESSnamespace sf{ bool operator<(const Event::KeyEvent& a, const Event::KeyEvent& b) { if(static_cast<int>(a.Code) < static_cast<int>(b.Code)) return true; if(static_cast<int>(a.Code) > static_cast<int>(b.Code)) return false; if(a.Alt < b.Alt) return true; if(a.Alt > b.Alt) return false; if(a.Control < b.Control) return true; if(a.Control > b.Control) return false; if(a.Shift < b.Shift) return true; return false; }};#endif
/home/Jonathan2/Desktop/C++/Linuwokakerox/src/Utils.cpp:35: multiple definition of `sf::operator<(sf::Event::KeyEvent const&, sf::Event::KeyEvent const&)'