Skip to content

Instantly share code, notes, and snippets.

@stoyannk
Created September 11, 2016 13:08
Show Gist options
  • Save stoyannk/79030731adb7bd32a8f9ddd5db0e47a1 to your computer and use it in GitHub Desktop.
Save stoyannk/79030731adb7bd32a8f9ddd5db0e47a1 to your computer and use it in GitHub Desktop.
template
void Unite2D(const Rectangle& other, bool allowEmpty = false)
{
static_assert(sizeof...(Components) >= sizeof...(RhsComponents), "Cannot assign to type with less components than operand!");
static_assert(meta_contains_types<meta_packer, meta_packer>::value, "Operand has components that are not part of this object!");
m_Value.Unite2D(other.m_Value, allowEmpty);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment