Allow passing temporary Rows to a table
authorMichael Andres <ma@suse.de>
Thu, 8 May 2014 16:58:54 +0000 (18:58 +0200)
committerMichael Andres <ma@suse.de>
Thu, 8 May 2014 16:58:54 +0000 (18:58 +0200)
src/Table.h

index 1d98c8c..acd0053 100644 (file)
@@ -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: