Revision 1849 trunk/src/nh99/param_init_bounded_number_matrix.cpp

param_init_bounded_number_matrix.cpp (revision 1849)
98 98
param_init_bounded_number_vector& param_init_bounded_number_matrix::operator[](
99 99
  const int i) const
100 100
{
101
  //#ifdef SAFE_ARRAYS
101
#ifndef OPT_LIB
102 102
  if (i < index_min)
103 103
  {
104 104
    ADMB_ARRAY_BOUNDS_ERROR("Index too low",
......
111 111
    "param_init_bounded_number_matrix::operator[](const int i) const",
112 112
    index_min, index_max, i);
113 113
  }
114
  //#endif
114
#endif
115 115
  return v[i];
116 116
}
117 117
param_init_bounded_number_vector& param_init_bounded_number_matrix::operator()(
118 118
  const int i) const
119 119
{
120
  //#ifdef SAFE_ARRAYS
120
#ifndef OPT_LIB
121 121
  if (i < index_min)
122 122
  {
123 123
    ADMB_ARRAY_BOUNDS_ERROR("Index too low",
......
130 130
    "param_init_bounded_number_matrix::operator[](const int i) const",
131 131
    index_min, index_max, i);
132 132
  }
133
  //#endif
133
#endif
134 134
  return v[i];
135 135
}
136 136
param_init_bounded_number& param_init_bounded_number_matrix::operator()(

Also available in: Unified diff