Browse Source

Add move constructor to LogLevel

Thomas Buck 9 years ago
parent
commit
763efbb8bf
1 changed files with 1 additions and 0 deletions
  1. 1
    0
      include/Log.h

+ 1
- 0
include/Log.h View File

48
 class LogLevel {
48
 class LogLevel {
49
   public:
49
   public:
50
     LogLevel(int l) : level(l) { printBuffer << std::boolalpha; }
50
     LogLevel(int l) : level(l) { printBuffer << std::boolalpha; }
51
+    LogLevel(LogLevel&& l) : level(l.level) { }
51
 
52
 
52
     LogLevel& operator<< (const glm::vec2& v) {
53
     LogLevel& operator<< (const glm::vec2& v) {
53
         return (*this) << v.x << " " << v.y;
54
         return (*this) << v.x << " " << v.y;

Loading…
Cancel
Save