MCPcopy Create free account
hub / github.com/ErrorAtLine0/infinipaint / max_size

Method max_size

include/Eigen/src/Core/util/Memory.h:944–944  ·  view source on GitHub ↗

In gcc std::allocator::max_size() is bugged making gcc triggers a warning: eigen/Eigen/src/Core/util/Memory.h:189:12: warning: argument 1 value '18446744073709551612' exceeds maximum object size 9223372036854775807 See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87544

Source from the content-addressed store, hash-verified

942 // eigen/Eigen/src/Core/util/Memory.h:189:12: warning: argument 1 value '18446744073709551612' exceeds maximum object
943 // size 9223372036854775807 See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87544
944 size_type max_size() const { return (std::numeric_limits<std::ptrdiff_t>::max)() / sizeof(T); }
945#endif
946
947 pointer allocate(size_type num, const void* /*hint*/ = 0) {

Callers 5

start_objectMethod · 0.80
start_arrayMethod · 0.80
start_objectMethod · 0.80
start_arrayMethod · 0.80
max_sizeFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected