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 src/engine/bindjam.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -560,7 +560,7 @@ struct jam_arg_spec_count_sum<X, A...>
// = X::count + jam_arg_spec_count_sum<A...>::value;
enum : std::size_t
{
value = X::count + jam_arg_spec_count_sum<A...>::value
value = static_cast<std::size_t>(X::count) + static_cast<std::size_t>(jam_arg_spec_count_sum<A...>::value)
};
};

Expand Down
11 changes: 7 additions & 4 deletions src/engine/value.h
Original file line number Diff line number Diff line change
Expand Up @@ -131,12 +131,15 @@ struct value_ref
inline bool operator==(value_ptr b) const { return val->equal_to(*b); }
inline bool operator==(const char * v) const
{
return (*this) == value_ref(v);
return val->equal_to(*value_ref(v));
}
template <typename T>
inline bool operator!=(T v) const
inline bool operator!=(value_ptr b) const
{
return !(val->equal_to(*b));
}
inline bool operator!=(const char * v) const
{
return !((*this) == v);
return !(val->equal_to(*value_ref(v)));
}
inline value_ptr operator->() const { return val; }
inline value & operator*() const { return *val; }
Expand Down
Loading