Article View: gnu.g++.help
Article #747Re: g++ and qsort
From: a-cnadc Dann Corbit
Date: Fri, 25 Aug 1995 18:58
Date: Fri, 25 Aug 1995 18:58
13 lines
1117 bytes
1117 bytes
In article <DDpG3H.88M@watserv3.uwaterloo.ca>, amgaudra@ccnga.uwaterloo.ca says... > > > I'm having a tough time using the C qsort function within a C++ >class. http://ccnga.uwaterloo.ca/~amgaudra The problem is the pointer types are not the same. If a function is a member of an object, there is that hidden "this" pointer. I've seen this same problem before, and have not seen any way to get around it. What I ended up doing was creating public cdecl functions (yetch). If someone knows a clever work around, I would like to know about it too. -- The opinions expressed in this message are my own personal views and do not reflect the official views of Microsoft Corporation.
Technical Details
Message-ID:
<41l6h3$cus@news2100.microsoft.com>Path:
arc1-ca.pugleaf.net!news.microsoft.com!newsReferences:
<DDpG3H.88M@watserv3.uwaterloo.ca>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!news.microsoft.com!news From: a-cnadc (Dann Corbit) Newsgroups: gnu.g++.help,comp.lang.c++ Subject: Re: g++ and qsort Date: 25 Aug 1995 18:58:43 GMT Organization: Microsoft Corporation Message-ID: <41l6h3$cus@news2100.microsoft.com> References: <DDpG3H.88M@watserv3.uwaterloo.ca> NNTP-Posting-Host: 157.57.171.202 Mime-Version: 1.0 X-Newsreader: WinVN 0.93.14