Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • S submissions-ptss
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 2
    • Issues 2
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar

To receive notifications about scheduled maintenance, please subscribe to the mailing-list gitlab-operations@sympa.ethz.ch. You can subscribe to the mailing-list at https://sympa.ethz.ch

  • eturricelli
  • submissions-ptss
  • Issues
  • #3
Closed
Open
Created Oct 12, 2020 by eturricelli@eturricelliOwner

Submission of exercise 3

Submission 3 (sorry for the delay)

Is there a way to use template programming in a OOP way? I know that the compiler needs to know the type to instantiate when we're working with templates, but I still don't get why I can't define my template function with headers and source files and then use those in main.cpp as we usually do in C++. In our case, my solution doesn't work if I don't explicitly put the function that computes the machine epsilon (machine_epsilon()) in main.cpp. What am I missing?

@ilabarca @engelerp @pollakg @msudwoj @rworreby

Assignee
Assign to
Time tracking