You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: stacktrace.html
+4-4
Original file line number
Diff line number
Diff line change
@@ -40,16 +40,16 @@ <h2>I. Motivation</h2>
40
40
<p>Pretty often assertions can't describe the whole picture of bug and does not provide enough information to locate the problem. For example, you can see the following message on out-of-range access:
41
41
</p>
42
42
<p><code>
43
-
../../../boost/array.hpp:123: T& boost::array<T,N>::operator[](boost::array<T,N>::size_type) [with T = int; long unsigned int N = 5ul]: Assertion '(i <N)&&("out of range")' failed.
43
+
../../../boost/array.hpp:123: T& boost::array<T, N>::operator[](boost::array<T, N>::size_type) [with T = int; long unsigned int N = 5ul]: Assertion '(i < N)&&("out of range")' failed.
44
44
Aborted (core dumped)</code>
45
45
</p>
46
46
<p>This assert can be in any translation unit including the <code>boost/array.hpp</code> header.</p>
47
47
<p>With adding of the proposed classes you may see the following message:
48
48
<pre>
49
-
Expression 'i <N' is false in function 'T& boost::array<T,N>::operator[](boost::array<T,N>::size_type) [with T = int; long unsigned int N = 5ul; boost::array<T,N>::reference = int&; boost::array<T,N>::size_type = long unsigned int]': out of range.
49
+
Expression 'i < N' is false in function 'T& boost::array<T, N>::operator[](boost::array<T, N>::size_type) [with T = int; long unsigned int N = 5ul; boost::array<T, N>::reference = int&; boost::array<T, N>::size_type = long unsigned int]': out of range.
0 commit comments