Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions include/xtensor/core/xaccessible.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ namespace xt
using const_reference = typename inner_types::const_reference;
using size_type = typename inner_types::size_type;

size_type size() const noexcept;
size_type size() const noexcept(noexcept(derived_cast().shape()));
size_type dimension() const noexcept;
size_type shape(size_type index) const;

Expand Down Expand Up @@ -138,7 +138,7 @@ namespace xt
* Returns the size of the expression.
*/
template <class D>
inline auto xconst_accessible<D>::size() const noexcept -> size_type
inline auto xconst_accessible<D>::size() const noexcept(noexcept(derived_cast().shape())) -> size_type
{
return compute_size(derived_cast().shape());
}
Expand Down
Loading