This is the mail archive of the sid@sourceware.org mailing list for the SID project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[patch][commit] ISO C++ Compliance


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  <brolley@redhat.com>

	* 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:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]