projects
/
platform
/
upstream
/
zypper.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
88484a2
)
Allow passing temporary Rows to a table
author
Michael Andres
<ma@suse.de>
Thu, 8 May 2014 16:58:54 +0000
(18:58 +0200)
committer
Michael Andres
<ma@suse.de>
Thu, 8 May 2014 16:58:54 +0000
(18:58 +0200)
src/Table.h
patch
|
blob
|
history
diff --git
a/src/Table.h
b/src/Table.h
index
1d98c8c
..
acd0053
100644
(file)
--- a/
src/Table.h
+++ b/
src/Table.h
@@
-93,7
+93,13
@@
TableRow & operator<<( TableRow & tr, const _Tp & val )
return tr;
}
-
+/** \relates TableRow Add colummn. */
+template<class _Tp>
+TableRow & operator<<( TableRow && tr, const _Tp & val )
+{
+ tr.add( zypp::str::asString( val ) );
+ return tr;
+}
class TableHeader : public TableRow {
public: