File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -63,12 +63,19 @@ class log_record
63
63
m_text_stream << something;
64
64
return *this ;
65
65
}
66
+
67
+ template < typename TypeOfSomething >
68
+ inline log_record& operator <<( TypeOfSomething&& something )
69
+ {
70
+ return write ( std::forward<TypeOfSomething>(something) );
71
+ }
66
72
67
73
std::string message () const { return m_text_stream.str (); }
68
74
const std::string& filename () const { return m_filename; }
69
75
unsigned long line () const { return m_line; }
70
76
71
77
private:
78
+
72
79
// disable copy
73
80
log_record ( const log_record& ); // = delete;
74
81
log_record& operator =( const log_record& ); // = delete;
@@ -77,12 +84,6 @@ class log_record
77
84
std::string m_filename; // = UNKNOWN_FILE_NAME;
78
85
unsigned long m_line; // = 0;
79
86
};
80
-
81
- template < typename TypeOfSomething >
82
- inline log_record& operator <<( log_record& log, TypeOfSomething&& something )
83
- {
84
- return log.write ( std::forward<TypeOfSomething>(something) );
85
- }
86
87
87
88
}}
88
89
You can’t perform that action at this time.
0 commit comments