From: Mikko Rasa Date: Thu, 6 Sep 2007 04:55:45 +0000 (+0000) Subject: Switch template parameters of load_sub around to allow automatic deduction X-Git-Tag: 1.0~23 X-Git-Url: http://git.tdb.fi/?p=libs%2Fdatafile.git;a=commitdiff_plain;h=c4930d8d15a5a248ca921e0ed3f9bca8aa18b322 Switch template parameters of load_sub around to allow automatic deduction --- diff --git a/source/loader.h b/source/loader.h index 6a0a1e3..7d5d8d9 100644 --- a/source/loader.h +++ b/source/loader.h @@ -251,12 +251,12 @@ protected: */ template void load_sub(S &s) - { load_sub(s); } + { load_sub(s); } /** Loads a sub-object with a custom Loader class. */ - template + template void load_sub(S &s) { if(!cur_st) @@ -269,7 +269,7 @@ protected: Loads a sub-object with a custom Loader class that takes one argument in addition to to object to be loaded. */ - template + template void load_sub(S &s, T &p) { if(!cur_st)