Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion source/meta/type_traits.h
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,7 @@ namespace emp {

template <typename Needle, typename Haystack,
template <typename, typename> class... Cmp>
static constexpr auto variadic_index_of_v = {
static constexpr size_t variadic_index_of_v{
variadic_index_of<Needle, Haystack, Cmp...>::value};

namespace __impl_variadics_type_traits {
Expand Down
2 changes: 1 addition & 1 deletion source/tools/attrs.h
Original file line number Diff line number Diff line change
Expand Up @@ -911,7 +911,7 @@ namespace emp {
/// of attributes and returns a pack containing each of those attributes.
template <class... T>
constexpr Attrs<std::decay_t<T>...> MakeAttrs(T&&... props) {
return {std::forward<T>(props)...};
return Attrs<std::decay_t<T>...>(std::forward<T>(props)...);
};

namespace __impl_attrs_merge {
Expand Down