git.stg.codes
/
stg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8358e77
)
Add declaration for operator<< for resetable
author
Maxim Mamontov
<faust.madf@gmail.com>
Wed, 30 Nov 2011 19:30:44 +0000
(21:30 +0200)
committer
Maxim Mamontov
<faust.madf@gmail.com>
Wed, 30 Nov 2011 19:30:44 +0000
(21:30 +0200)
include/stg/resetable.h
patch
|
blob
|
history
diff --git
a/include/stg/resetable.h
b/include/stg/resetable.h
index cb35d80830dad69e229aa562470a96dd12c76c54..f3cecac843b65ba94f85ffc023f945e7c8981c64 100644
(file)
--- a/
include/stg/resetable.h
+++ b/
include/stg/resetable.h
@@
-58,6
+58,10
@@
private:
};
template <typename T>
+std::ostream & operator<<(std::ostream & o, const RESETABLE<T> & v);
+
+template <typename T>
+inline
std::ostream & operator<<(std::ostream & o, const RESETABLE<T> & v)
{
return o << v.const_data();