Tuesday, May 26, 2015

Digest for comp.lang.c++@googlegroups.com - 2 updates in 2 topics

Nobody <nobody@nowhere.invalid>: May 26 10:55PM +0100

On Mon, 25 May 2015 23:28:45 -0700, fl wrote:
 
> Excuse me. I did use using at first, but it still can't pass build with
> MSVC. Now, it is found that MSVC does not support c++11.
 
This version works in VS 2010:
 
#include <array>
 
static const size_t X = 5;
static const size_t Y = 6;
 
typedef std::tr1::array<std::tr1::array<double,X>,Y> Matrix;
Victor Bazarov <v.bazarov@comcast.invalid>: May 26 04:56PM -0400

On 5/26/2015 4:45 PM, Luca Risolia wrote:
 
> in which case foo(NULL) is ambiguous if you only have the foo(int) and
> foo(int*) overloads defined, because conversion from long to int and 0L
> to int* are considered equally good.
 
Aha... Thanks! Good to know. I keep forgetting about 0L.
 
V
--
I do not respond to top-posted replies, please don't ask
You received this digest because you're subscribed to updates for this group. You can change your settings on the group membership page.
To unsubscribe from this group and stop receiving emails from it send an email to comp.lang.c+++unsubscribe@googlegroups.com.

No comments: