Topic: Templated classes, inheritance, and global
Author: clamage@Eng.Sun.COM (Steve Clamage)
Date: 1995/06/09 Raw View
In article 95Jun8212111@colobus.cv.nrao.edu, bglenden@colobus.cv.nrao.edu (Brian Glendenning) writes:
>Is the C++ standard going to guarantee that code like the following
>will work:
>I thought that while the ARM disallowed this conversion (derived reference to
>base reference) in a templated global function, that it was certain to be in
>the forthcoming standard. However, I have recently had a knowledgable source
>tell me that this might not happen.
Your source isn't very knowledgeable, and evidently hasn't read the
draft standard. These and other conversions are now explicitly allowed.
It takes a while for compilers to catch up to language changes, however.
---
Steve Clamage, stephen.clamage@eng.sun.com