Skip to content

Commit

Permalink
Merge branch 'development'
Browse files Browse the repository at this point in the history
# Conflicts:
#	include/etl/version.h
#	library.json
#	library.properties
#	meson.build
  • Loading branch information
John Wellbelove committed Aug 1, 2021
2 parents 2c11956 + 78239ec commit 8986f80
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 11 deletions.
12 changes: 6 additions & 6 deletions include/etl/private/variant_variadic.h
Original file line number Diff line number Diff line change
Expand Up @@ -536,7 +536,7 @@ namespace etl
{
static_assert(etl::is_one_of<etl::remove_reference_t<T>, TTypes...>::value, "Unsupported type");

construct_in_place<etl::remove_reference_t<T>>(data, std::forward<T>(value));
construct_in_place<etl::remove_reference_t<T>>(data, etl::forward<T>(value));
}

//***************************************************************************
Expand All @@ -550,7 +550,7 @@ namespace etl
{
static_assert(etl::is_one_of<etl::remove_reference_t<T>, TTypes...>::value, "Unsupported type");

construct_in_place_args<etl::remove_reference_t<T>>(data, std::forward<TArgs>(args)...);
construct_in_place_args<etl::remove_reference_t<T>>(data, etl::forward<TArgs>(args)...);
}

//***************************************************************************
Expand All @@ -564,7 +564,7 @@ namespace etl
using type = typename private_variant::parameter_pack<TTypes...>:: template type_from_index_t<Index>;
static_assert(etl::is_one_of<type, TTypes...> ::value, "Unsupported type");

construct_in_place_args<type>(data, std::forward<TArgs>(args)...);
construct_in_place_args<type>(data, etl::forward<TArgs>(args)...);

operation = operation_type<type, etl::is_copy_constructible<type>::value, etl::is_move_constructible<type>::value>::do_operation;
}
Expand All @@ -581,7 +581,7 @@ namespace etl
{
static_assert(etl::is_one_of<etl::remove_reference_t<T>, TTypes...> ::value, "Unsupported type");

construct_in_place_args<etl::remove_reference_t<T>>(data, init, std::forward<TArgs>(args)...);
construct_in_place_args<etl::remove_reference_t<T>>(data, init, etl::forward<TArgs>(args)...);
}

//***************************************************************************
Expand All @@ -595,7 +595,7 @@ namespace etl
using type = typename private_variant::parameter_pack<TTypes...>:: template type_from_index_t<Index>;
static_assert(etl::is_one_of<type, TTypes...> ::value, "Unsupported type");

construct_in_place_args<type>(data, init, std::forward<TArgs>(args)...);
construct_in_place_args<type>(data, init, etl::forward<TArgs>(args)...);

operation = operation_type<type, etl::is_copy_constructible<type>::value, etl::is_move_constructible<type>::value>::do_operation;
}
Expand Down Expand Up @@ -675,7 +675,7 @@ namespace etl

operation(private_variant::Destroy, data, nullptr);

construct_in_place_args<type>(data, std::forward<TArgs>(args)...);
construct_in_place_args<type>(data, etl::forward<TArgs>(args)...);

operation = operation_type<type, etl::is_copy_constructible<type>::value, etl::is_move_constructible<type>::value>::do_operation;

Expand Down
2 changes: 1 addition & 1 deletion include/etl/version.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ SOFTWARE.

#define ETL_VERSION_MAJOR 20
#define ETL_VERSION_MINOR 14
#define ETL_VERSION_PATCH 0
#define ETL_VERSION_PATCH 1
#define ETL_VERSION ETL_STRINGIFY(ETL_VERSION_MAJOR) "." ETL_STRINGIFY(ETL_VERSION_MINOR) "." ETL_STRINGIFY(ETL_VERSION_PATCH)
#define ETL_VERSION_W ETL_STRINGIFY(ETL_VERSION_MAJOR) L"." ETL_STRINGIFY(ETL_VERSION_MINOR) L"." ETL_STRINGIFY(ETL_VERSION_PATCH)
#define ETL_VERSION_U16 ETL_STRINGIFY(ETL_VERSION_MAJOR) u"." ETL_STRINGIFY(ETL_VERSION_MINOR) u"." ETL_STRINGIFY(ETL_VERSION_PATCH)
Expand Down
2 changes: 1 addition & 1 deletion library.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ETL Embedded Template Library",
"version": "20.14.0",
"version": "20.14.1",
"author s": {
"name": "John Wellbelove",
"email": "[email protected]"
Expand Down
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=Embedded Template Library ETL
version=20.14.0
version=20.14.1
author= John Wellbelove <[email protected]>
maintainer=John Wellbelove <[email protected]>
license=MIT
Expand Down
2 changes: 1 addition & 1 deletion meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ project('PROJECT_NAME',
'cpp_std=c++17', 'build.cpp_std=c++17',
],
meson_version: '>=0.54.0',
version: '20.14.0'
version: '20.14.1'
)

######################
Expand Down
4 changes: 4 additions & 0 deletions support/Release notes.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
===============================================================================
20.14.1
Changed std::forward to etl::forward in etl::variant (variadic)

===============================================================================
20.14.0
Added a vaiadic version of etl::variant. Usable for C++11 and up.
Expand Down
2 changes: 1 addition & 1 deletion test/vs2019/etl.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -7129,4 +7129,4 @@
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
</ImportGroup>
</Project>
</Project>

0 comments on commit 8986f80

Please sign in to comment.