-
Notifications
You must be signed in to change notification settings - Fork 70
Expand file tree
/
Copy pathmain.cpp
More file actions
33 lines (27 loc) · 686 Bytes
/
main.cpp
File metadata and controls
33 lines (27 loc) · 686 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#include <UDRefl/UDRefl.hpp>
#include <iostream>
#include <cmath>
using namespace Ubpa;
using namespace Ubpa::UDRefl;
int main() {
Mngr.RegisterType<int**>();
int i = 0;
int* pi = &i;
int** ppi = π
std::cout
<< "//" << std::endl
<< "// int**" << std::endl
<< "//////////" << std::endl;
for (auto&& [name, info] : MethodRange_of<int**>)
std::cout << name.GetView() << std::endl;
std::cout
<< "//" << std::endl
<< "// int*" << std::endl
<< "/////////" << std::endl;
for (auto&& [name, info] : MethodRange_of<int*>)
std::cout << name.GetView() << std::endl;
SharedObject ref_i = **ObjectView{ ppi };
ref_i = 3;
std::cout << i << std::endl;
return 0;
}