Boost logo

Boost :

From: Jens Maurer (Jens.Maurer_at_[hidden])
Date: 2002-01-07 17:55:31


rgarcia1771 wrote:
> > - Needs attention to the fact that classes having dependent base
> > classes don't have the members of the base class visible for
> > unqualified lookup.
> >
> Could you elaborate on this? Is some of the code non-conformant (wrt
> C++ Standard)? I understand the basic idea of what you are referring
> to, but a specific example would be helpful.

One small example below.

Jens Maurer

jmaurer_at_gigue:~/Boost/local/multi_array/libs/multi_array/test > como --strict_warnings -I../../.. compare.cpp
Comeau C/C++ 4.2.45.2 (Feb 27 2001 17:23:08) for RedHat_LINUX_INTEL_ELF_BETA
Copyright 1988-2001 Comeau Computing. All rights reserved.
MODE:strict warnings C++

"../../../boost/multi_array/extent_range.hpp", line 22: error: identifier
          "first" is undefined
    Extent start() const { return first; }
                                  ^

"../../../boost/multi_array/extent_range.hpp", line 24: error: identifier
          "second" is undefined
    Extent finish() const { return second; }
                                   ^

"../../../boost/multi_array/extent_range.hpp", line 26: error: identifier
          "second" is undefined
    SizeType size() const { return second - first; }
                                   ^

"../../../boost/multi_array/extent_range.hpp", line 26: error: identifier
          "first" is undefined
    SizeType size() const { return second - first; }
                                            ^

4 errors detected in the compilation of "compare.cpp".


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk