Skip to content

Commit

Permalink
fix remaining names
Browse files Browse the repository at this point in the history
  • Loading branch information
artemp committed Feb 13, 2014
1 parent 4b325da commit 2de14db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion variant.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ struct variant_helper<T, Types...>
if (old_id == sizeof...(Types))
{
new (new_value) T(std::move(*reinterpret_cast<T*>(old_value)));
//std::memcpy(new_v, old_v, sizeof(T));
//std::memcpy(new_value, old_value, sizeof(T));
// ^^ DANGER: this should only be considered for relocatable types e.g built-in types
// Also, I don't see any measurable performance benefit just yet
}
Expand Down

0 comments on commit 2de14db

Please sign in to comment.