We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
noexcept
1 parent 1089342 commit abe7b0fCopy full SHA for abe7b0f
1 file changed
include/xtensor/core/xaccessible.hpp
@@ -36,7 +36,7 @@ namespace xt
36
using const_reference = typename inner_types::const_reference;
37
using size_type = typename inner_types::size_type;
38
39
- size_type size() const noexcept;
+ size_type size() const noexcept(noexcept(derived_cast().shape()));
40
size_type dimension() const noexcept;
41
size_type shape(size_type index) const;
42
@@ -138,7 +138,7 @@ namespace xt
138
* Returns the size of the expression.
139
*/
140
template <class D>
141
- inline auto xconst_accessible<D>::size() const noexcept -> size_type
+ inline auto xconst_accessible<D>::size() const noexcept(noexcept(derived_cast().shape())) -> size_type
142
{
143
return compute_size(derived_cast().shape());
144
}
0 commit comments