example_fun.cpp 589 B

1234567891011121314151617181920212223
  1. #include "example_fun.h"
  2. #include <iostream>
  3. template <typename Printable>
  4. IGL_INLINE bool igl::example_fun(const Printable & input)
  5. {
  6. using namespace std;
  7. cout<<"example_fun: "<<input<<endl;
  8. return true;
  9. }
  10. #ifndef IGL_HEADER_ONLY
  11. template bool igl::example_fun<double>(const double& input);
  12. template bool igl::example_fun<int>(const int& input);
  13. //// List all useful instanciations here
  14. //namespace igl_explicit_instanciations
  15. //{
  16. // bool (*example_fun_A)(const double &) = &igl::example_fun<double>;
  17. // bool (*example_fun_B)(const int &) = &igl::example_fun<int>;
  18. //}
  19. #endif