< Previous by Date | Date Index | Next by Date > |
< Previous in Thread | Thread Index | Next in Thread > |
I notice these are all supposed to be fixed-size types so hopefully casts are OK
Do you see this change being more problematic than that for Windows users?
It is not something I intend to put into the 1.8.x branch, it is only for v1.9 and beyond
On 10/09/13 15:10, Scott Godin wrote:
Hi Daniel,
These changes break builds on windows. Here is a sample of the output from Visual Studio 2010:2>d:\myprojects\resip-main\rutil\wincompat.cxx(362): error C2440: '<function-style-cast>' : cannot convert from 'DWORD' to 'resip::Data'2> No constructor could take the source type, or constructor overload resolution was ambiguous2>d:\myprojects\resip-main\rutil\wincompat.cxx(369): error C2440: '<function-style-cast>' : cannot convert from 'ULONG' to 'resip::Data'2> No constructor could take the source type, or constructor overload resolution was ambiguous2>d:\myprojects\resip-main\rutil\wincompat.cxx(369): error C2440: '<function-style-cast>' : cannot convert from 'DWORD' to 'resip::Data'2> No constructor could take the source type, or constructor overload resolution was ambiguous2>d:\myprojects\resip-main\rutil\wincompat.cxx(406): error C2440: '<function-style-cast>' : cannot convert from 'DWORD' to 'resip::Data'2> No constructor could take the source type, or constructor overload resolution was ambiguous
Looking into it now.
Scott
On Tue, Sep 10, 2013 at 7:30 AM, Daniel Pocock <daniel@xxxxxxxxxxxxx> wrote:
I'm not sure if all the fixed-size integer stuff should be merged in for
v1.9
However, I feel it is a good idea to start using it for Data, because
some of the methods expect certain sizes anyway
I've made some small updates for this and it means that the Data.hxx API
has changed slightly, the Data(unsigned long) constructor is gone and
now you have to use Data(Int32), Data(UInt32) or Data(UInt64).
Regards,
Daniel
_______________________________________________
resiprocate-devel mailing list
resiprocate-devel@xxxxxxxxxxxxxxx
https://list.resiprocate.org/mailman/listinfo/resiprocate-devel