Revision 1921 trunk/src/linad99/lvec1.cpp

lvec1.cpp (revision 1921)
29 29
 */
30 30
 AD_LONG_INT& lvector::operator[] (int i)
31 31
 {
32
   #ifdef SAFE_ARRAYS
33 32
     if (i>indexmax())
34 33
     {
35 34
       ADMB_ARRAY_BOUNDS_ERROR("array bound exceeded -- index too high",
......
41 40
       ADMB_ARRAY_BOUNDS_ERROR("array bound exceeded -- index too low",
42 41
       "AD_LONG_INT& lvector::operator() (int i)", indexmin(), indexmax(), i);
43 42
     }
44
   #endif
45 43
   return(*(v+i));
46 44
 }
47 45

  
......
51 49
 */
52 50
 AD_LONG_INT& lvector::operator() (int i)
53 51
 {
54
   #ifdef SAFE_ARRAYS
55 52
     if (i>indexmax())
56 53
     {
57 54
       ADMB_ARRAY_BOUNDS_ERROR("array bound exceeded -- index too high",
......
62 59
       ADMB_ARRAY_BOUNDS_ERROR("array bound exceeded -- index too low",
63 60
       "AD_LONG_INT& lvector::operator() (int i)", indexmin(), indexmax(), i);
64 61
     }
65
   #endif
66 62
   return(*(v+i));
67 63
 }
68 64
#endif

Also available in: Unified diff