Skip to content

Commit db54f1d

Browse files
committed
Fixup
1 parent 85d4675 commit db54f1d

File tree

4 files changed

+14
-10
lines changed

4 files changed

+14
-10
lines changed

3rdparty/yasio/yasio/io_service.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ SOFTWARE.
4646

4747
#include "yasio/wtimer_hres.hpp"
4848

49+
#include "yasio/tlx/string.hpp"
50+
4951
#if defined(YASIO_ENABLE_KCP)
5052
struct yasio_kcp_options {
5153
int kcp_conv_ = 0;

3rdparty/yasio/yasio/tlx/string.hpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -80,11 +80,11 @@ class basic_string {
8080
};
8181
__compressed_pair<allocator_type, _Str_storage> _Mypair;
8282

83-
basic_string() : _Mypair(__one_then_variadic_args_t{}, _Alloc{}) {}
83+
basic_string() : _Mypair(__zero_then_variadic_args_t{}) {}
8484
basic_string(nullptr_t) = delete;
8585
explicit basic_string(size_type count) : _Mypair(__one_then_variadic_args_t{}, _Alloc{}) { resize(static_cast<size_type>(count)); }
8686
basic_string(size_type count, const_reference val) : _Mypair(__one_then_variadic_args_t{}, _Alloc{}) { resize(static_cast<size_type>(count), val); }
87-
template <typename _Iter, ::yasio::enable_if_t<::yasio::is_iterator<_Iter>::value, int> = 0>
87+
template <typename _Iter, _TLX enable_if_t<_TLX is_iterator<_Iter>::value, int> = 0>
8888
basic_string(_Iter first, _Iter last) : _Mypair(__one_then_variadic_args_t{}, _Alloc{})
8989
{
9090
assign(first, last);
@@ -122,7 +122,7 @@ class basic_string {
122122
return *this;
123123
}
124124

125-
template <typename _Iter, ::yasio::enable_if_t<::yasio::is_iterator<_Iter>::value, int> = 0>
125+
template <typename _Iter, _TLX enable_if_t<_TLX is_iterator<_Iter>::value, int> = 0>
126126
void assign(_Iter first, _Iter last)
127127
{
128128
_Assign_range(first, last);
@@ -144,7 +144,7 @@ class basic_string {
144144
std::swap(a._Myend, b._Myend);
145145
}
146146

147-
template <typename _Iter, ::yasio::enable_if_t<::yasio::is_iterator<_Iter>::value, int> = 0>
147+
template <typename _Iter, _TLX enable_if_t<_TLX is_iterator<_Iter>::value, int> = 0>
148148
iterator insert(iterator _Where, _Iter first, _Iter last)
149149
{
150150
auto& st = _Mypair._Myval2;
@@ -205,7 +205,7 @@ class basic_string {
205205
}
206206

207207
basic_string& append(view_type value) { return this->append(value.begin(), value.end()); }
208-
template <typename _Iter, ::yasio::enable_if_t<::yasio::is_iterator<_Iter>::value, int> = 0>
208+
template <typename _Iter, _TLX enable_if_t<_TLX is_iterator<_Iter>::value, int> = 0>
209209
basic_string& append(_Iter first, const _Iter last)
210210
{
211211
if (first != last)
@@ -584,7 +584,7 @@ class basic_string {
584584
return st._Mylast; // points to null terminator slot
585585
}
586586

587-
template <typename _Iter, ::yasio::enable_if_t<::yasio::is_iterator<_Iter>::value, int> = 0>
587+
template <typename _Iter, _TLX enable_if_t<_TLX is_iterator<_Iter>::value, int> = 0>
588588
void _Assign_range(_Iter first, _Iter last)
589589
{
590590
auto& st = _Mypair._Myval2;

3rdparty/yasio/yasio/tlx/vector.hpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,9 @@ class vector { // varying size array of values
363363
using iterator = sequence_iterator<_Scary_val>;
364364
using const_iterator = sequence_const_iterator<_Scary_val>;
365365

366-
constexpr explicit vector(const _Alloc& _Al = _Alloc{}) noexcept : _Mypair(_TLX __one_then_variadic_args_t{}, _Al) {}
366+
constexpr vector() noexcept : _Mypair(_TLX __zero_then_variadic_args_t{}) {}
367+
368+
constexpr explicit vector(const _Alloc& _Al) noexcept : _Mypair(_TLX __one_then_variadic_args_t{}, _Al) {}
367369

368370
constexpr explicit vector(const size_type _Count, const _Alloc& _Al = _Alloc()) : _Mypair(_TLX __one_then_variadic_args_t{}, _Al) { _Construct_n(_Count); }
369371

@@ -409,8 +411,8 @@ class vector { // varying size array of values
409411
std::exchange(_Right._Mypair._Myval2._Mylast, nullptr), std::exchange(_Right._Mypair._Myval2._Myend, nullptr))
410412
{}
411413

412-
constexpr vector(vector&& _Right,
413-
const _TLX identity_t<_Alloc>& _Al_) noexcept(std::allocator_traits<_Alloc>::is_always_equal::value && std::is_nothrow_move_constructible_v<_Ty>)
414+
constexpr vector(vector&& _Right, const _TLX identity_t<_Alloc>& _Al_) noexcept(std::allocator_traits<_Alloc>::is_always_equal::value &&
415+
std::is_nothrow_move_constructible_v<_Ty>)
414416
: _Mypair(_TLX __one_then_variadic_args_t{}, _Al_)
415417
{
416418
_Alty& _Al = _Getal();

axmol/rhi/opengl/ProgramGL.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ void ProgramImpl::reflectUniformInfos()
229229
_maxLocation = -1;
230230
_activeUniformInfos.clear();
231231

232-
yasio::basic_byte_buffer<GLchar> buffer; // buffer for name
232+
tlx::basic_byte_buffer<GLchar> buffer; // buffer for name
233233

234234
// OpenGL UBO: uloc[0]: block_offset, uloc[1]: offset in block
235235

0 commit comments

Comments
 (0)