MCPcopy Create free account
hub / github.com/TinyMPC/TinyMPC / max_size

Method max_size

include/Eigen/Eigen/src/Core/util/Memory.h:987–989  ·  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

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected