[SCM] exiv2 packaging branch, master, updated. debian/0.25-3.1-3734-gdcbc29a

Maximiliano Curia maxy at moszumanska.debian.org
Thu Jul 13 17:35:59 UTC 2017


Gitweb-URL: http://git.debian.org/?p=pkg-kde/kde-extras/exiv2.git;a=commitdiff;h=5ea9faf

The following commit has been merged in the master branch:
commit 5ea9faf79edf08626b252b2ea641bda75a494a82
Author: Andreas Huggel <ahuggel at gmx.net>
Date:   Thu Feb 5 03:43:37 2004 +0000

    Added toString template
---
 src/tags.hpp | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/src/tags.hpp b/src/tags.hpp
index 99ce7e6..2f2ef6e 100644
--- a/src/tags.hpp
+++ b/src/tags.hpp
@@ -21,7 +21,7 @@
 /*!
   @file    tags.hpp
   @brief   %Exif tag and type information
-  @version $Name:  $ $Revision: 1.7 $
+  @version $Name:  $ $Revision: 1.8 $
   @author  Andreas Huggel (ahu)
            <a href="mailto:ahuggel at gmx.net">ahuggel at gmx.net</a>
   @date    15-Jan-04, ahu: created
@@ -250,6 +250,15 @@ namespace Exif {
     // No default implementation: let the compiler/linker complain
 //    template<typename T> inline TypeId getType() { return invalid; }
 
+    //! Utility function to convert the argument of any type to a string
+    template<typename T> 
+    std::string toString(T arg)
+    {
+        std::ostringstream os;
+        os << arg;
+        return os.str();
+    }
+
 }                                       // namespace Exif
 
 #endif                                  // #ifndef TAGS_HPP_

-- 
exiv2 packaging



More information about the pkg-kde-commits mailing list