From 486ba90888791d95ddf26be275cdf5988cd84440 Mon Sep 17 00:00:00 2001
From: Hannes Hauswedell
Date: Tue, 10 Jan 2017 14:31:56 +0100
Subject: [PATCH] [FIX] workaround for gcc-4.9.1
---
src/misc.hpp | 22 ++++++++++++++++------
1 file changed, 16 insertions(+), 6 deletions(-)
diff --git a/src/misc.hpp b/src/misc.hpp
index 75487adce..2a7bcc375 100644
--- a/src/misc.hpp
+++ b/src/misc.hpp
@@ -222,13 +222,12 @@ _myReadRecordsImpl(TCDStringSet> & meta,
template >>::Type const &,
- uint64_t const)> >
+ typename TRunnable>
inline int
myReadRecords(TCDStringSet> & ids,
TCDStringSet> & seqs,
TFile & file,
- TRunnable && runnable = [] (auto const &, uint64_t const) {})
+ TRunnable && runnable)
{
TCDStringSet> tmpSeqs; // all IUPAC nucleic acid characters are valid input
try
@@ -252,13 +251,12 @@ myReadRecords(TCDStringSet> & ids,
template >>::Type const &,
- uint64_t const)> >
+ typename TRunnable>
inline int
myReadRecords(TCDStringSet> & ids,
TCDStringSet> & seqs,
TFile & file,
- TRunnable && runnable = [] (auto const &, uint64_t const) {})
+ TRunnable && runnable)
{
try
{
@@ -282,6 +280,18 @@ myReadRecords(TCDStringSet> & ids,
return 0;
}
+template
+inline int
+myReadRecords(TCDStringSet> & ids,
+ TCDStringSet> & seqs,
+ TFile & file)
+{
+ return myReadRecords(ids, seqs, file, [] (auto const &, uint64_t const) {});
+}
+
// ----------------------------------------------------------------------------
// truncate sequences
// ----------------------------------------------------------------------------