mirror of
https://github.com/ksherlock/mpw.git
synced 2025-02-16 12:30:53 +00:00
.
This commit is contained in:
parent
56fc471255
commit
4b3228f9c7
@ -19,7 +19,8 @@ namespace MacOS {
|
||||
template<class T>
|
||||
struct tool_return_type<tool_return<T>> { typedef tool_return<T> type; };
|
||||
|
||||
|
||||
template<>
|
||||
struct tool_return_type<macos_error> { typedef tool_return<void> type; };
|
||||
|
||||
|
||||
|
||||
@ -218,7 +219,7 @@ namespace MacOS {
|
||||
}
|
||||
|
||||
template<class TT=T>
|
||||
T value_or_error(typename std::enable_if<std::is_integral<TT>::value>::type * = 0) const {
|
||||
TT value_or_error(typename std::enable_if<std::is_integral<TT>::value>::type * = 0) const {
|
||||
return _error ? _error : _value;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user