Re: [boost] MultiArray warning under /Za

Ronald, Thanks for changing it. Just to clarify, this is why its happening: typedef int T; int f(int T); <-- using T as a parameter when its previously declared as a type is a no-no under strict conformance(?) I hope that helps.
-----Original Message----- From: boost-bounces@lists.boost.org [mailto:boost-bounces@lists.boost.org] On Behalf Of Ronald Garcia Sent: Monday, April 10, 2006 11:16 AM To: boost@lists.boost.org Subject: Re: [boost] MultiArray warning under /Za
Hi Sohail,
Thanks for the information. I have checked in your suggested patch. Let me know if that gives you any trouble.
Cheers, ron
On Apr 10, 2006, at 1:41 PM, Sohail Somani wrote:
It would have been VC++ 7.1 with boost 1.33.1
-----Original Message----- From: boost-bounces@lists.boost.org [mailto:boost-bounces@lists.boost.org] On Behalf Of Ronald Garcia Sent: Monday, April 10, 2006 9:29 AM To: boost@lists.boost.org Subject: Re: [boost] MultiArray warning under /Za
Hi Sohail,
Hmm, this warning sounds strange to me. I'm not absolutely sure, but it looks like an incorrect warning on the part of your compiler. What version of Visual C++ are you using?
cheers, ron
On Apr 5, 2006, at 2:41 PM, Sohail Somani wrote:
Boost 1.33.1
In multi_array.hpp:
struct populate_index_ranges { multi_array_types::index_range operator()(multi_array_types::index base, multi_array_types::size_type extent) { return multi_array_types::index_range(base,base+extent);
The parameter name extent seems to be typedef'ed previously. This results in:
external\boost\include\boost\multi_array.hpp(46) : warning C4224: nonstandard extension used : formal parameter 'extent' was previously defined as a type
I've changed it in my tree to be extent_.
Sohail _______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/ listinfo.cgi/boost
_______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
_______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/ listinfo.cgi/boost
_______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
participants (1)
-
Sohail Somani