Is this really true:
When I compile GCCE UREL target on command line (S60 3rd edition), TPtr can't be cast to TDes (in Visual Studio it can (for target WINSCW UDEB) and the program works fine). I've got a following piece of code:
I call ReadLongDBColL:
HBufC* url = HBufC::NewLC( aView.ColLength(urlcol) );
ReadLongDBColL( aView, urlcol, (TDes&) url->Des() );
and ReadLongDBColL is defined as:
TInt CMyDB::ReadLongDBColL( RDbView& aView, const TInt aColNo, TDes& aRetVal )
Then I get the following error:
..\\src\\db\\Moviedb.cpp:8730: error: conversion to non-const reference type `class TDes&' from rvalue of type `TPtr16'
HOWEVER if I write the calling code as this:
ReadLongDBColL( aView, urlcol, joo );
It works! Hallelujah!!!
Is my compiler broken or am I?