Revision 1921 trunk/src/linad99/lvec2.cpp

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

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

Also available in: Unified diff