From: Warren Young Date: August 2 2007 12:02am Subject: Re: failing row[] assignment List-Archive: http://lists.mysql.com/plusplus/6862 Message-Id: <46B11EFC.1000106@etr-usa.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Jeff Huston wrote: > In which case the cast is required is it not?... A static cast like that should never be required for an assignment in a C++ program. C++ has strong type checking, but static casts completely disable this feature. If the compiler refuses to allow the assignment without a cast, you need to work within the type system to fix it, not bypass it. (That's the general rule...there are exceptions, of course.)