sf-svg
debug.hpp
Go to the documentation of this file.
1 /* =========================================================== *
2  * sf-svg (c) Kamil Koczurek | koczurekk@gmail.com *
3  * GNU GPL v3 License http://www.gnu.org/licenses/gpl-3.0.html *
4  * =========================================================== */
5 
10 
11 #ifndef DEBUG_HPP
12 #define DEBUG_HPP
13 
14 #include <SFML/System/Vector2.hpp>
15 #include <iostream>
16 
17 template<typename T>
18 std::ostream& operator<<(std::ostream& out, const sf::Vector2<T>& vec) {
19  out << "[" << vec.x << ", " << vec.y << "]";
20  return out;
21 }
22 
23 #endif // DEBUG_HPP