diff options
| author | Erik Kundiman <erik@megapahit.org> | 2024-04-20 14:08:23 +0800 |
|---|---|---|
| committer | Erik Kundiman <erik@megapahit.org> | 2024-04-20 14:08:23 +0800 |
| commit | 23a35d763bca645ce628d80ebd939c979590724c (patch) | |
| tree | 434e8413c209d8a29fe93ed17ea2717817660a7e /indra/llcommon/stdtypes.h | |
| parent | 1a4517e5af8f43433fc2547658615dce4073d9a3 (diff) | |
| parent | 78174fc8658caeddfd8306ec19eb0e1c2975368e (diff) | |
Merge tag '7.1.5-release'
source for viewer 7.1.5.8443591509
Diffstat (limited to 'indra/llcommon/stdtypes.h')
| -rw-r--r-- | indra/llcommon/stdtypes.h | 18 |
1 files changed, 3 insertions, 15 deletions
diff --git a/indra/llcommon/stdtypes.h b/indra/llcommon/stdtypes.h index 463e1e832b..cd4da4cad1 100644 --- a/indra/llcommon/stdtypes.h +++ b/indra/llcommon/stdtypes.h @@ -161,18 +161,15 @@ typedef int intptr_t; * type. */ // narrow_holder is a struct that accepts the passed value as its original -// type and provides templated conversion functions to other types. Once we're -// building with compilers that support Class Template Argument Deduction, we -// can rename this class template 'narrow' and eliminate the narrow() factory -// function below. +// type and provides templated conversion functions to other types. template <typename FROM> -class narrow_holder +class narrow { private: FROM mValue; public: - narrow_holder(FROM value): mValue(value) {} + narrow(FROM value): mValue(value) {} /*---------------------- Narrowing unsigned to signed ----------------------*/ template <typename TO, @@ -212,13 +209,4 @@ public: } }; -/// narrow() factory function returns a narrow_holder<FROM>(), which can be -/// implicitly converted to the target type. -template <typename FROM> -inline -narrow_holder<FROM> narrow(FROM value) -{ - return { value }; -} - #endif |
