~ubuntu-branches/ubuntu/quantal/poco/quantal

« back to all changes in this revision

Viewing changes to Foundation/include/Poco/Buffer.h

  • Committer: Bazaar Package Importer
  • Author(s): Krzysztof Burghardt
  • Date: 2008-11-15 11:39:15 UTC
  • mfrom: (3.1.1 sid)
  • Revision ID: james.westby@ubuntu.com-20081115113915-7kauhm2c3m2i7oid
Tags: 1.3.3p1-2
* Fixed FTBFS with GCC 4.4 due to missing #include (Closes: #505619)
* Renamed 20_gcc43-missing-include.dpatch to 20_gcc44-missing-include.dpatch
* Downgraded dependencies on -dbg packages (Closes: #504342)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
//
2
2
// Buffer.h
3
3
//
4
 
// $Id: //poco/1.3/Foundation/include/Poco/Buffer.h#1 $
 
4
// $Id: //poco/1.3/Foundation/include/Poco/Buffer.h#3 $
5
5
//
6
6
// Library: Foundation
7
7
// Package: Core
102
102
        
103
103
        T& operator [] (std::size_t index)
104
104
        {
105
 
                poco_assert (index >= 0 && index < _size);
 
105
                poco_assert (index < _size);
106
106
                
107
107
                return _ptr[index];
108
108
        }
109
109
 
110
110
        const T& operator [] (std::size_t index) const
111
111
        {
112
 
                poco_assert (index >= 0 && index < _size);
 
112
                poco_assert (index < _size);
113
113
                
114
114
                return _ptr[index];
115
115
        }