---
title: "Comment by Yosef Meller on \"[C++]Modelling an Array of multiple types using Templates\" | Hashnode"
description: "It should be noted that if one&#39;s not doing it for the learning or fun, in production code it&#39;s best to use std::array&lt;&gt; and not reinvent the wheel"
url: "https://hashnode.com/posts/modelling-an-array-of-multiple-types-using-templates/606b953bb17dc439b747deec/comment/608c10bbdc886b4318004047"
---

[Discussion](https://hashnode.com/posts/modelling-an-array-of-multiple-types-using-templates/606b953bb17dc439b747deec)

Comment [\[C++\]Modelling an Array of multiple types using Templates](https://hashnode.com/posts/modelling-an-array-of-multiple-types-using-templates/606b953bb17dc439b747deec)

[Yosef Meller](https://hashnode.com/@yosefm)

[Apr 30, 2021](https://hashnode.com/posts/modelling-an-array-of-multiple-types-using-templates/606b953bb17dc439b747deec/comment/608c10bbdc886b4318004047)

It should be noted that if one's not doing it for the learning or fun, in production code it's best to use `std::array<>` and not reinvent the wheel.

[Chisom Hermes Chigoziri](https://hashnode.com/@Padawan)

[Apr 30, 2021](https://hashnode.com/posts/modelling-an-array-of-multiple-types-using-templates/606b953bb17dc439b747deec/comment/608c10bbdc886b4318004047#reply-608c1283dc886b4318004066)

yup, i did it to see if i can do it, i'm a beginner in C++, it was just an experiment
