mirror of
https://github.com/Andreabont/CppExperiments.git
synced 2024-09-19 15:23:05 +00:00
25 lines
432 B
C++
25 lines
432 B
C++
|
#include <iostream>
|
||
|
#include <sstream>
|
||
|
#include <chrono>
|
||
|
|
||
|
#include "MultiType.h"
|
||
|
|
||
|
int main(int argc, char **argv) {
|
||
|
|
||
|
Node test;
|
||
|
|
||
|
test.setData<double>(10.1);
|
||
|
|
||
|
std::cout << test.getData<double>() << std::endl;
|
||
|
|
||
|
test.setData<double>(20.2);
|
||
|
|
||
|
std::cout << test.getData<double>() << std::endl;
|
||
|
|
||
|
test.setData<int>(3);
|
||
|
|
||
|
std::cout << test.getData<int>() << std::endl;
|
||
|
|
||
|
return 0;
|
||
|
}
|