Issue 14782 - IRIX Port: Error on static_cast
Summary: IRIX Port: Error on static_cast
Status: CLOSED FIXED
Alias: None
Product: porting
Classification: Code
Component: code (show other issues)
Version: OOo 1.1 Beta2
Hardware: SGI IRIX
: P3 Trivial (vote)
Target Milestone: OOo 1.1 RC
Assignee: Martin Hollmichel
QA Contact: issues@porting
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-05-23 07:19 UTC by Unknown
Modified: 2003-11-23 11:53 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
sal/rtl/source/bootstrap.cxx (368 bytes, patch)
2003-05-23 07:23 UTC, Unknown
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this issue.
Description Unknown 2003-05-23 07:19:11 UTC
While trying to make the following static cast in sal/rtl/source/bootstrap.cxx:597

found = static_cast< Bootstrap_Impl const * >( handle )->getValue(pName,
ppValue, pDefault );

I get the following error massage:
static_cast from `void *' to `const Bootstrap_Impl *'

I tried using a C style cast but with no luck.

The following patch will take care of the problem...
Comment 1 Unknown 2003-05-23 07:23:17 UTC
Created attachment 6347 [details]
sal/rtl/source/bootstrap.cxx
Comment 2 Unknown 2003-05-23 07:23:50 UTC
adding keyword, and accepting
Comment 3 khendricks 2003-06-06 14:04:07 UTC
Hi George, 
 
I thought there was already some discussion about this on the dev or dev@porting 
mailing list. 
 
My understanding is that you can do the cast as a combination of a static_cast and a 
const_cast. 
 
If so (and I am no C++ guy) perhaps trying that might be better than just dropping the 
"const" for everyone. 
 
So please ask about this on the dev or dev@porting list and see what people say. 
 
Thanks, 
 
Kevin 
 
Comment 4 Unknown 2003-06-16 05:21:41 UTC
re-assigning to Nick Blievers
Comment 5 Martin Hollmichel 2003-06-16 11:32:01 UTC
retarget.
Comment 6 nickb 2003-07-07 02:35:16 UTC
Accepting..
Comment 7 Martin Hollmichel 2003-07-14 17:20:52 UTC
mh->dbo: please review.
Comment 8 Daniel Boelzle [:dbo] 2003-07-15 09:41:10 UTC
reviewed.
Comment 9 Daniel Boelzle [:dbo] 2003-07-15 09:41:42 UTC
verified
Comment 10 Daniel Boelzle [:dbo] 2003-07-15 09:42:11 UTC
reassigned.
Comment 11 Martin Hollmichel 2003-07-15 10:23:58 UTC
fixed.
Comment 12 Martin Hollmichel 2003-07-15 10:24:24 UTC
verified
Comment 13 pavel 2003-11-23 11:53:52 UTC
Closing.