Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacques Lucke <jacques@blender.org>2022-01-10 14:28:23 +0300
committerJacques Lucke <jacques@blender.org>2022-01-10 14:28:33 +0300
commitbd8fa07a3df6d55ca83778253a3ccaa5a9ca4660 (patch)
tree20b66dc066354ab9983964b3f3008f23ad29b147 /source/blender/blenlib/BLI_any.hh
parent934db6a8201afe9b137ff41a3bf3f1da6b32ca02 (diff)
Cleanup: add utility macro to simplify using std::enable_if
Diffstat (limited to 'source/blender/blenlib/BLI_any.hh')
-rw-r--r--source/blender/blenlib/BLI_any.hh2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenlib/BLI_any.hh b/source/blender/blenlib/BLI_any.hh
index 0fc5de5540f..7ffc323adf6 100644
--- a/source/blender/blenlib/BLI_any.hh
+++ b/source/blender/blenlib/BLI_any.hh
@@ -209,7 +209,7 @@ class Any {
/**
* Constructs a new #Any that contains the given value.
*/
- template<typename T, typename X = std::enable_if_t<!is_same_any_v<T>, void>>
+ template<typename T, BLI_ENABLE_IF((!is_same_any_v<T>))>
Any(T &&value) : Any(std::in_place_type<T>, std::forward<T>(value))
{
}