Revision 1921 trunk/src/linad99/ptr_vec.cpp

ptr_vec.cpp (revision 1921)
164 164
 */
165 165
void*& ptr_vector::operator[] (int i)
166 166
{
167
#ifdef SAFE_ARRAYS
168 167
  if (i > indexmax())
169 168
  {
170 169
    cerr << "array bound exceeded -- index too high in ivector::operator[]";
......
175 174
    cerr << "array bound exceeded -- index too low in ivector::operator[]";
176 175
    ad_exit(1);
177 176
  }
178
#endif
179 177
  return (*(v+i));
180 178
}
181 179

  
......
185 183
 */
186 184
void*& ptr_vector::operator()(int i)
187 185
{
188
#ifdef SAFE_ARRAYS
189 186
  if (i>indexmax())
190 187
  {
191 188
    cerr << "array bound exceeded -- index too high in ivector::operator[]";
......
196 193
    cerr << "array bound exceeded -- index too low in ivector::operator[]";
197 194
    ad_exit(1);
198 195
  }
199
#endif
200 196
  return(*(v+i));
201 197
}
202 198
/**

Also available in: Unified diff