Skip to content
This repository has been archived by the owner on Apr 25, 2021. It is now read-only.

Feature: Auto determine type #42

Open
AjaniBilby opened this issue Aug 4, 2020 · 0 comments
Open

Feature: Auto determine type #42

AjaniBilby opened this issue Aug 4, 2020 · 0 comments
Labels
enhancement New feature or request low priority

Comments

@AjaniBilby
Copy link
Member

Allow datatypes to be listed as auto and let the compiler resolve the types.

Example use cases

template ( wild T )
void process(T val) { /* do something */ }

int main () {
  auto a = 65 - 23;
  auto b = returnsRect();
  process<auto>(b); // auto fill 
  return 0;
}
@AjaniBilby AjaniBilby added enhancement New feature or request low priority labels Aug 4, 2020
@AjaniBilby AjaniBilby changed the title Feature: Auto type Feature: Auto determine type Aug 4, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request low priority
Projects
None yet
Development

No branches or pull requests

1 participant