lmi
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lmi] Strange format message in list_soa_file_tables()


From: Greg Chicares
Subject: Re: [lmi] Strange format message in list_soa_file_tables()
Date: Fri, 21 Nov 2014 15:36:21 +0000
User-agent: Mozilla/5.0 (Windows NT 5.1; rv:24.0) Gecko/20100101 Thunderbird/24.6.0

On 2014-11-16 02:13Z, Vadim Zeitlin wrote:
> 
>                 boost::format("Table index file file '%1%': attempted to read 
> %2% bytes, but got %3% bytes instead.")
>                 % index_path.string()
>                 % index_record_length
>                 % index_ifs
> 
>  Surely "index_ifs" which is, again, of "fs::ifstream" type, can't
> represent the number of bytes read on its own? AFAICS there is a missing
> ".gcount()" here

Yes. On 20141121T1521Z (revision 6035) I restored original code from
'actuarial_table.cpp', which has always used ".gcount()" here.

I also purged lmi of boost::format, which was used only in 'soa*.?pp'.
That library is not to my personal taste anyway: I think it makes code
harder to read. And with this dependency removed, soa2xml$(EXEEXT) and
soa_stress_test$(EXEEXT) now build with como.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]