Run Code  | API  | Code Wall  | Misc  | Feedback  | Login  | Theme  | Privacy  | Patreon 

Type erasure for templates => Implementing a simple property system

Language: Layout:
+ ] Compiler args + ] Show input
Compilation time: 1.13 sec, absolute running time: 0.06 sec, cpu time: 0.01 sec, memory peak: 3 Mb, absolute service time: 1,2 sec 
edit mode |  history
Error(s):
 [TRACE] Property [basis-points] set to value = 200
 [TRACE] Property [basis-points] set to value = 80
 ======= Experiment 1 =======
 => p[0] =  Property{ Name = "basis-points" ; Value = 100 }
 => p[1] =  Property{ Name = "price" ; Value = 5.6 }
 => p[2] =  Property{ Name = "product" ; Value =  }

 ======= Experiment 2 =======
 => p0.Name() = basis-points ; Value = 200
 => plist[0]->Name() = basis-points plist[0]->Get<int>() = 80

    
                
λ
.NET NoSQL database for rapid development