mirror of
https://github.com/microsoft/GSL.git
synced 2024-11-03 17:56:43 -05:00
get back gcc 8.4 compatibility (#1127)
Before my PR #1122 `gsl/pointers` was gcc 8.4 compatible. Now it is not. This commit makes it compatible with gcc 8.4 again.
This commit is contained in:
parent
167c77d28e
commit
b34f7350fe
@ -118,7 +118,7 @@ public:
|
|||||||
not_null(const not_null& other) = default;
|
not_null(const not_null& other) = default;
|
||||||
not_null& operator=(const not_null& other) = default;
|
not_null& operator=(const not_null& other) = default;
|
||||||
constexpr details::value_or_reference_return_t<T> get() const
|
constexpr details::value_or_reference_return_t<T> get() const
|
||||||
noexcept(noexcept(details::value_or_reference_return_t<T>{ptr_}))
|
noexcept(noexcept(details::value_or_reference_return_t<T>{std::declval<T&>()}))
|
||||||
{
|
{
|
||||||
return ptr_;
|
return ptr_;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user