[patch][commit] ISO C++ Compliance

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[patch][commit] ISO C++ Compliance

Dave Brolley-2
Hi,

I've committed the attached patch which allows compilation with recent
more strict ISO C++ compliance by gcc. The typedef is referenced by an
inheriting class and, so, must be protected, not private.

Dave

2007-01-17  Dave Brolley  <[hidden email]>

        * sidbusutil.h (value_control_register::ValueType): Now
        protected.


Index: sid/include/sidbusutil.h
===================================================================
RCS file: /cvs/src/src/sid/include/sidbusutil.h,v
retrieving revision 1.16
diff -c -p -r1.16 sidbusutil.h
*** sid/include/sidbusutil.h 2 Aug 2005 18:53:10 -0000 1.16
--- sid/include/sidbusutil.h 11 Jan 2007 19:10:33 -0000
*************** namespace sidutil
*** 730,736 ****
    template <typename DataType>
    class value_control_register: public control_register<DataType>
    {
!   private:
      typedef typename DataType::value_type ValueType;
 
    public:
--- 730,736 ----
    template <typename DataType>
    class value_control_register: public control_register<DataType>
    {
!   protected:
      typedef typename DataType::value_type ValueType;
 
    public: