mirror of
https://github.com/bolero-MURAKAMI/Sprout.git
synced 2025-07-16 15:14:13 +00:00
add _ placeholder User-defined literals
This commit is contained in:
parent
50f2ba6e31
commit
2f86a59273
7 changed files with 188 additions and 116 deletions
|
@ -161,7 +161,7 @@ namespace sprout {
|
|||
// invocation
|
||||
template<typename... Args>
|
||||
SPROUT_CONSTEXPR typename std::result_of<T& (Args&&...)>::type
|
||||
operator() (Args&&... args) const {
|
||||
operator()(Args&&... args) const {
|
||||
return (*t_)(sprout::forward<Args>(args)...);
|
||||
}
|
||||
};
|
||||
|
@ -285,7 +285,7 @@ namespace sprout {
|
|||
// unwrap_ref
|
||||
//
|
||||
template<typename T>
|
||||
inline typename sprout::unwrap_reference<T>::type&
|
||||
inline SPROUT_CONSTEXPR typename sprout::unwrap_reference<T>::type&
|
||||
unwrap_ref(T& t) {
|
||||
return t;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue