example_fun.cpp 459 B

12345678910111213141516171819
  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. // List all useful instanciations here
  12. namespace igl_explicit_instanciations
  13. {
  14. bool (*example_fun_A)(const double &) = &igl::example_fun<double>;
  15. bool (*example_fun_B)(const int &) = &igl::example_fun<int>;
  16. }
  17. #endif