2 Dec
2009
2 Dec
'09
9:43 p.m.
On Wed, Dec 2, 2009 at 3:29 PM, James C. Sutherland < James.Sutherland@utah.edu> wrote:
Thank you! That works great for pointers, but now not for POD, e.g., const int m = get<int>(p,"int"); Any ideas of how to get this to work with POD and pointers?
Why can't you use boost::enable_if and only enable the get<> template if the
argument is const? This imposes the restriction that you actually invoke
the get<> template as follows:
const int m = get<const int>(p, "int");
const int* m2 = get