Skip to content

Commit 5794c52

Browse files
committed
fix passing exc by value
1 parent bca92f7 commit 5794c52

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

configure.ac

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
#
66

77
AC_PREREQ([2.68])
8-
AC_INIT([cosi], [2.3.2rc7], [ilya_shl@alum.mit.edu])
8+
AC_INIT([cosi], [2.3.2rc8], [ilya_shl@alum.mit.edu])
99
AC_CONFIG_AUX_DIR([build-aux])
1010
AC_CONFIG_MACRO_DIR([m4])
1111
AM_INIT_AUTOMAKE([1.9 tar-pax parallel-tests -Wall])

cosi/cositop.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ CoSiMain::CoSiMain():
6666
void CoSiMain::printCompileOptions() {
6767
using std::cerr;
6868

69-
cerr << "cosi coalescent simulator, version 2.3.2rc7\n\n";
69+
cerr << "cosi coalescent simulator, version 2.3.2rc8\n\n";
7070
cerr << "Compile-time options:\n";
7171

7272
cerr << " COSI_SUPPORT_COALAPX (support for approximating the coalescent): " <<

cosi/general/utils.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ TSVIdx::TSVIdx( filename_t tsvFN, unsigned colNum, filename_t idxFN ) {
332332
std::istream::streampos lineBeg = tsvFile.tellg();
333333
std::string line;
334334
try { std::getline( tsvFile, line ); }
335-
catch( std::ios::failure ) { break; }
335+
catch( const std::ios::failure& ) { break; }
336336
++lineNum;
337337
if ( lineNum == 1 ) continue;
338338

tests/sample_stats_extra.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1602,7 +1602,7 @@ int sample_stats_main(int argc, char *argv[])
16021602
po::store(po::command_line_parser(argc, argv).options(desc).positional(positional_opts).run(), vm);
16031603
po::notify(vm);
16041604
}
1605-
catch(std::exception& e) {
1605+
catch(const std::exception& e) {
16061606
cerr << e.what() << "\n";
16071607
return EXIT_FAILURE;
16081608
}

0 commit comments

Comments
 (0)