Re: [Firebird-devel] Class to prevent implicit zero to pointer conversion

2016-06-07 Thread Dmitry Yemanov
01.06.2016 18:21, Dimitry Sibiryakov wrote: > > I've got a little problem when implicit conversion from zero to pointer can > cause > calling of wrong overloaded function. For example, foo(bool a) and foo(void* > a) both can > be called as foo(0) and compiler used to throw error for this call, bu

[Firebird-devel] Class to prevent implicit zero to pointer conversion

2016-06-01 Thread Dimitry Sibiryakov
Hello, All. I've got a little problem when implicit conversion from zero to pointer can cause calling of wrong overloaded function. For example, foo(bool a) and foo(void* a) both can be called as foo(0) and compiler used to throw error for this call, but in some (more complex) cases co