Compare commits
11 Commits
temp-sculp
...
tmp-volume
Author | SHA1 | Date | |
---|---|---|---|
ca820c3ebd | |||
ab223d1f8e | |||
b8866eeeb3 | |||
616ff437ea | |||
b2c869f6a9 | |||
54ece291d3 | |||
b6db27fe24 | |||
fbfa83caba | |||
32c173be45 | |||
77c550cc43 | |||
6b7d893107 |
@@ -98,8 +98,8 @@ class Any {
|
|||||||
private:
|
private:
|
||||||
/* Makes it possible to use void in the template parameters. */
|
/* Makes it possible to use void in the template parameters. */
|
||||||
using RealExtraInfo =
|
using RealExtraInfo =
|
||||||
std::conditional_t<std::is_void_v<ExtraInfo>, detail::NoExtraInfo, ExtraInfo>;
|
std::conditional_t<std::is_void_v<ExtraInfo>, blender::detail::NoExtraInfo, ExtraInfo>;
|
||||||
using Info = detail::AnyTypeInfo<RealExtraInfo>;
|
using Info = blender::detail::AnyTypeInfo<RealExtraInfo>;
|
||||||
static constexpr size_t RealInlineBufferCapacity = std::max(InlineBufferCapacity,
|
static constexpr size_t RealInlineBufferCapacity = std::max(InlineBufferCapacity,
|
||||||
sizeof(std::unique_ptr<int>));
|
sizeof(std::unique_ptr<int>));
|
||||||
|
|
||||||
|
@@ -491,7 +491,8 @@ template<typename T, int Size>
|
|||||||
[[nodiscard]] MatBase<T, Size, Size> invert(const MatBase<T, Size, Size> &mat)
|
[[nodiscard]] MatBase<T, Size, Size> invert(const MatBase<T, Size, Size> &mat)
|
||||||
{
|
{
|
||||||
bool success;
|
bool success;
|
||||||
return invert(mat, success);
|
/* Explicit template parameter to please MSVC. */
|
||||||
|
return invert<T, Size>(mat, success);
|
||||||
}
|
}
|
||||||
|
|
||||||
template<typename T, int NumCol, int NumRow>
|
template<typename T, int NumCol, int NumRow>
|
||||||
|
@@ -527,7 +527,7 @@ template<typename T> class VArrayCommon {
|
|||||||
* Other virtual array implementations are typically stored as #std::shared_ptr. That works even
|
* Other virtual array implementations are typically stored as #std::shared_ptr. That works even
|
||||||
* when the implementation itself is not copyable and makes copying #VArrayCommon cheaper.
|
* when the implementation itself is not copyable and makes copying #VArrayCommon cheaper.
|
||||||
*/
|
*/
|
||||||
using Storage = Any<detail::VArrayAnyExtraInfo<T>, 24, 8>;
|
using Storage = Any<blender::detail::VArrayAnyExtraInfo<T>, 24, 8>;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Pointer to the currently contained virtual array implementation. This is allowed to be null.
|
* Pointer to the currently contained virtual array implementation. This is allowed to be null.
|
||||||
|
Reference in New Issue
Block a user