Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c++ > #4843

Re: Which casting conversion to use for void*?

From Ian Collins <ian-news@hotmail.com>
Newsgroups comp.lang.c++
Subject Re: Which casting conversion to use for void*?
Date 2011-05-10 09:27 +1200
Message-ID <92r4hhF51pU4@mid.individual.net> (permalink)
References <c74d3365-8f36-490e-8072-e12b28268c14@j23g2000yqc.googlegroups.com> <iq81ob$ke2$1@speranza.aioe.org> <4dc8147b$0$2413$cc2e38e6@news.uslec.net> <92qvi0F51pU3@mid.individual.net> <9d516ade-d493-410e-9047-988821067edd@p7g2000yqh.googlegroups.com>

Show all headers | View raw


On 05/10/11 08:59 AM, Öö Tiib wrote:
> On May 9, 11:02 pm, Ian Collins<ian-n...@hotmail.com>  wrote:
>> On 05/10/11 04:21 AM, Noah Roberts wrote:
>>
>>
>>
>>> So, it's not really a well recommended practice in my opinion to plug in
>>> reinterpret_cast when the compiler starts to bitch.  This cast should
>>> really be reserved for very special cases and, in fact, with almost all
>>> modern C++ it's completely unnecessary.
>>
>> While I agree in theory, a lot of my nice shiny modern C++ had to deal
>> with C interfaces.  Try using BSD socket and name service functions
>> without a smattering of reinterpret_casts.
>
> Yes but lot of these C things have C++ wrappers. Instead of raw C
> networking most aim something like ACE, boost::asio, QDataStream
> etc ... it is more typesafe and portable.

Ug, why did you have to mention ACE?  I got over the nightmares years 
ago, now they will come back!

-- 
Ian Collins

Back to comp.lang.c++ | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Which casting conversion to use for void*? Nephi Immortal <immortalnephi@gmail.com> - 2011-05-08 15:44 -0700
  Re: Which casting conversion to use for void*? Ian Collins <ian-news@hotmail.com> - 2011-05-09 10:48 +1200
  Re: Which casting conversion to use for void*? Qi <no@no.no> - 2011-05-09 14:31 +0800
    Re: Which casting conversion to use for void*? Martijn van Buul <pino@dohd.org> - 2011-05-09 08:04 +0000
    Re: Which casting conversion to use for void*? Noah Roberts <dont@email.me> - 2011-05-09 09:21 -0700
      Re: Which casting conversion to use for void*? Joshua Maurice <joshuamaurice@gmail.com> - 2011-05-09 11:34 -0700
        Re: Which casting conversion to use for void*? Noah Roberts <dont@email.me> - 2011-05-09 12:48 -0700
          Re: Which casting conversion to use for void*? Joshua Maurice <joshuamaurice@gmail.com> - 2011-05-09 14:12 -0700
          Re: Which casting conversion to use for void*? Stuart Redmann <DerTopper@web.de> - 2011-05-09 23:44 -0700
            Re: Which casting conversion to use for void*? "Alf P. Steinbach /Usenet" <alf.p.steinbach+usenet@gmail.com> - 2011-05-10 18:24 +0200
              Re: Which casting conversion to use for void*? Stuart Redmann <DerTopper@web.de> - 2011-05-10 22:56 -0700
        Re: Which casting conversion to use for void*? Öö Tiib <ootiib@hot.ee> - 2011-05-09 13:44 -0700
          Re: Which casting conversion to use for void*? Joshua Maurice <joshuamaurice@gmail.com> - 2011-05-09 14:04 -0700
            Re: Which casting conversion to use for void*? Öö Tiib <ootiib@hot.ee> - 2011-05-09 14:33 -0700
              Re: Which casting conversion to use for void*? Kai-Uwe Bux <jkherciueh@gmx.net> - 2011-05-09 23:46 +0200
                Re: Which casting conversion to use for void*? Öö Tiib <ootiib@hot.ee> - 2011-05-09 15:16 -0700
      Re: Which casting conversion to use for void*? Ian Collins <ian-news@hotmail.com> - 2011-05-10 08:02 +1200
        Re: Which casting conversion to use for void*? Öö Tiib <ootiib@hot.ee> - 2011-05-09 13:59 -0700
          Re: Which casting conversion to use for void*? Ian Collins <ian-news@hotmail.com> - 2011-05-10 09:27 +1200
            Re: Which casting conversion to use for void*? Jorgen Grahn <grahn+nntp@snipabacken.se> - 2011-05-10 07:42 +0000
              Re: Which casting conversion to use for void*? Ian Collins <ian-news@hotmail.com> - 2011-05-10 20:20 +1200
                Re: Which casting conversion to use for void*? Dombo <dombo@disposable.invalid> - 2011-05-10 21:08 +0200
                Re: Which casting conversion to use for void*? Jorgen Grahn <grahn+nntp@snipabacken.se> - 2011-05-11 16:23 +0000
                Re: Which casting conversion to use for void*? Kai-Uwe Bux <jkherciueh@gmx.net> - 2011-05-11 18:57 +0200
                Re: Which casting conversion to use for void*? Öö Tiib <ootiib@hot.ee> - 2011-05-11 16:30 -0700
                Re: Which casting conversion to use for void*? Jorgen Grahn <grahn+nntp@snipabacken.se> - 2011-05-12 13:54 +0000
      Re: Which casting conversion to use for void*? Qi <no@no.no> - 2011-05-10 10:45 +0800
  Re: Which casting conversion to use for void*? "Balog Pal" <pasa@lib.hu> - 2011-05-09 10:44 +0200
    Re: Which casting conversion to use for void*? ThosRTanner <ttanner2@bloomberg.net> - 2011-05-11 04:57 -0700

csiph-web