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


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

Re: dynamic_cast and generic pointer

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From "Default User" <defaultuserbr@yahoo.com>
Newsgroups comp.lang.c++
Subject Re: dynamic_cast and generic pointer
Date Tue, 6 Sep 2011 18:07:57 -0500
Lines 18
Message-ID <9cnneeFfoeU1@mid.individual.net> (permalink)
References <3d7f54db-fcbe-4f00-92c4-8d63c38d8cab@glegroupsg2000goo.googlegroups.com> <j460vh$jro$1@dont-email.me> <629a494f-449f-488a-8ac0-dfd2bcf040bc@glegroupsg2000goo.googlegroups.com>
X-Trace individual.net ABunVEAXbxQFjnK7iM8q3Auct4B+QlZudLzcO6Rj9Oewkyjlly
Cancel-Lock sha1:aQi+8Y2q7FMcyNhEuGcaK8KnW9Y=
X-Priority 3
X-MSMail-Priority Normal
X-Newsreader Microsoft Outlook Express 6.00.2900.5931
X-MimeOLE Produced By Microsoft MimeOLE V6.00.2900.6090
X-RFC2646 Format=Flowed; Original
Xref x330-a1.tempe.blueboxinc.net comp.lang.c++:9849

Show key headers only | View raw


"asit" <lipun4u@gmail.com> wrote in message 
news:629a494f-449f-488a-8ac0-dfd2bcf040bc@glegroupsg2000goo.googlegroups.com...
> why it's not c++ code ?

Restoring the context:

> >      B ob = new B;
>         ^^^^^^^^^^^^^  Cannot happen in C++

Because ob is not a pointer to B, which is required if you assign the result 
of new to it.



Brian

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


Thread

dynamic_cast and generic pointer asit <lipun4u@gmail.com> - 2011-09-06 12:38 -0700
  Re: dynamic_cast and generic pointer Victor Bazarov <v.bazarov@comcast.invalid> - 2011-09-06 16:48 -0400
    Re: dynamic_cast and generic pointer asit <lipun4u@gmail.com> - 2011-09-06 14:23 -0700
      Re: dynamic_cast and generic pointer Ian Collins <ian-news@hotmail.com> - 2011-09-07 10:09 +1200
      Re: dynamic_cast and generic pointer "Default User" <defaultuserbr@yahoo.com> - 2011-09-06 18:07 -0500
      Re: dynamic_cast and generic pointer Joe Greer <jgreer@doubletake.com> - 2011-09-08 14:45 +0000
  Re: dynamic_cast and generic pointer Asger-P <junk@asger-p.dk> - 2011-09-07 01:08 +0200
  Re: dynamic_cast and generic pointer Paavo Helde <myfirstname@osa.pri.ee> - 2011-09-07 00:02 -0500
  Re: dynamic_cast and generic pointer Juha Nieminen <nospam@thanks.invalid> - 2011-09-07 06:22 +0000
    Re: dynamic_cast and generic pointer Goran <goran.pusic@gmail.com> - 2011-09-07 04:16 -0700
      Re: dynamic_cast and generic pointer BGB <cr88192@hotmail.com> - 2011-09-08 23:17 -0700

csiph-web