Re: shouldn't const cast always be allowed (even if shunned)

2012-11-15 Thread Jonathan M Davis
On Thursday, November 15, 2012 15:23:40 Dan wrote: > There are times when casting away const is needed. Structs that > define opCast can get in the way of this. For instance, the cast > below fails, but I think it should always be allowed. So, if the > source type and cast type are the same except

Re: shouldn't const cast always be allowed (even if shunned)

2012-11-15 Thread Simen Kjaeraas
On 2012-23-15 15:11, Dan wrote: There are times when casting away const is needed. Structs that define opCast can get in the way of this. For instance, the cast below fails, but I think it should always be allowed. So, if the source type and cast type are the same except for const qualifiers,

shouldn't const cast always be allowed (even if shunned)

2012-11-15 Thread Dan
There are times when casting away const is needed. Structs that define opCast can get in the way of this. For instance, the cast below fails, but I think it should always be allowed. So, if the source type and cast type are the same except for const qualifiers, there is no need to consider cust