[patch][commit] ISO C++ Compliance
Dave Brolley <[email protected]> Wed, 17 Jan 2007 15:56:56 -0500
| Newsgroups | gmane.comp.emulators.sid.devel |
|---|---|
| Message-ID | <[email protected]> |
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
sid.iso.ChangeLog
(text/plain, 118 B)
2007-01-17 Dave Brolley <[email protected]> * sidbusutil.h (value_control_register::ValueType): Now protected.
sid.iso.patch.txt
(text/plain, 772 B)
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: