fork(2) download
  1. template <double* pVar>
  2. double fun()
  3. {
  4. return *pVar;
  5. }
  6.  
  7. double param = 1.2;
  8.  
  9. int main() {
  10. double value = fun<&param>();
  11. return 0;
  12. }
Success #stdin #stdout 0s 3336KB
stdin
Standard input is empty
stdout
Standard output is empty