The following commit has been merged in the master branch:
commit f0718bd742b1663204ee9675df45102438bb5293
Author: Andrei Zavada <[email protected]>
Date:   Thu Apr 25 15:29:03 2013 +0300

    lessen templatedness of make_fname_* functions

diff --git a/src/libsigfile/source-base.hh b/src/libsigfile/source-base.hh
index 4a3ce2b..9357e89 100644
--- a/src/libsigfile/source-base.hh
+++ b/src/libsigfile/source-base.hh
@@ -27,33 +27,29 @@ using namespace std;
 
 namespace sigfile {
 
-template<class T>
-string
-make_fname_hypnogram( const T& _filename, size_t pagesize)
+inline string
+make_fname_hypnogram( const string& _filename, size_t pagesize)
 {
        return agh::fs::make_fname_base( _filename, ".edf", true)
                + "-" + to_string( (long long unsigned)pagesize) + ".hypnogram";
 }
 
-template<class T>
-string
-make_fname_artifacts( const T& _filename, const SChannel& channel)
+inline string
+make_fname_artifacts( const string& _filename, const SChannel& channel)
 {
        return agh::fs::make_fname_base( _filename, ".edf", true)
                + "-" + channel + ".af";
 }
 
-template<class T>
-string
-make_fname_annotations( const T& _filename, const SChannel& channel)
+inline string
+make_fname_annotations( const string& _filename, const SChannel& channel)
 {
        return agh::fs::make_fname_base( _filename, ".edf", true)
                + "-" + channel + ".annotations";
 }
 
-template<class T>
-string
-make_fname_filters( const T& _filename)
+inline string
+make_fname_filters( const string& _filename)
 {
        return agh::fs::make_fname_base( _filename, ".edf", true)
                + ".filters";

-- 
Sleep experiment manager

_______________________________________________
debian-med-commit mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/debian-med-commit

Reply via email to