From cc717cde6e35240b3dc5492fefd5864295b7ff40 Mon Sep 17 00:00:00 2001 From: astrojhgu Date: Sun, 4 Jan 2009 17:00:50 +0000 Subject: git-svn-id: file:///home/svn/opt_utilities@6 ed2142bd-67ad-457f-ba7c-d818d4011675 --- misc/bootstrap.hpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'misc/bootstrap.hpp') diff --git a/misc/bootstrap.hpp b/misc/bootstrap.hpp index bdee0b8..0e58efa 100644 --- a/misc/bootstrap.hpp +++ b/misc/bootstrap.hpp @@ -70,8 +70,12 @@ namespace opt_utilities } private: - void sample() + Tp sample() { + if(p_fitter==NULL) + { + throw fitter_unset(); + } current_data_set=default_data_set(); for(int i=0;i