Hello again, now I can verify the problem after fixing the complile errors. Try adding "c2d.getInt()" into your tonum.cpp after declaring c2d and you get a linker error. At least I get.
Another problem are possible overflows in Decimal::getInteger. We should really handle this using the std::numeric_limits-templates by thowing std::overflow_error in case of an overflow. Tommi On Saturday 01 September 2007 23:38:05 Tommi Mäkitalo wrote: > Hello Mark, > > thank you. I got your zip-file and uploaded it to > http://www.tntnet.org/download/decimal_sep_2_2007.zip. > Maybe someone else is also interested. > > I quickly looked at the code and it looks very good. > > I just wonder, why you put the template method Decimal::getInteger into the > cpp-file. Templates do not work, if they are not known at compile time. > That's why they must be in the header. Do that code work for you? > > There are some compile errors, when I apply your patch, but they look > trivial. I fix them and do some testing. > > Tommi > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Tntnet-general mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/tntnet-general ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Tntnet-general mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/tntnet-general
