mirror of
https://github.com/fmtlib/fmt.git
synced 2024-11-19 20:18:49 +00:00
Remove from_checked
This commit is contained in:
parent
cb7bbc6224
commit
0829cab8f2
@ -349,18 +349,11 @@ template <typename T>
|
||||
inline stdext::checked_array_iterator<T*> make_checked(T *p, std::size_t size) {
|
||||
return {p, size};
|
||||
}
|
||||
|
||||
// Extracts the pointer from a checked iterator.
|
||||
template <typename T>
|
||||
static T *from_checked(stdext::checked_array_iterator<T*> p) { return p.base(); }
|
||||
|
||||
#else
|
||||
template <typename T>
|
||||
struct checked { typedef T *type; };
|
||||
template <typename T>
|
||||
inline T *make_checked(T *p, std::size_t) { return p; }
|
||||
template <typename T>
|
||||
inline T *from_checked(T *p) { return p; }
|
||||
#endif
|
||||
|
||||
template <typename T>
|
||||
|
Loading…
Reference in New Issue
Block a user