Skip to content

Instantly share code, notes, and snippets.

@hadronized
Created June 5, 2011 15:06
Show Gist options
  • Save hadronized/1009035 to your computer and use it in GitHub Desktop.
Save hadronized/1009035 to your computer and use it in GitHub Desktop.
;)
template <class Format, class Dispatch>
mesh<Format, Dispatch>::mesh(std::string const &name) :
resource< mesh<Format, Dispatch> >(name),
_nbIndices(0) {
}
// after a base_type idiom ...
template <class Format, class Dispatch>
mesh<Format, Dispatch>::mesh(std::string const &name) :
mesh::resource_base_type(name), // even mesh::base_type(name) :)
_nbIndices(0) {
}
// win :)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment