ColinGilbert / mili

Automatically exported from code.google.com/p/mili
Boost Software License 1.0
0 stars 0 forks source link

template_info::is_const doesn't work for const references or const pointers #41

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
is_const doesn't work for const references or const pointers (returns false)

this, fails:

ASSERT_TRUE(bool(template_info<const int*>::is_const));

Original issue reported on code.google.com by hugo.arregui on 4 Oct 2011 at 5:57

GoogleCodeExporter commented 9 years ago

Original comment by hugo.arregui on 4 Oct 2011 at 5:57

GoogleCodeExporter commented 9 years ago
good catch. can u resolve it pls?

Original comment by daniel.g...@fudepan.org.ar on 4 Oct 2011 at 6:10

GoogleCodeExporter commented 9 years ago
you may use the native_type mapper provided in the type_mapper library.

Original comment by daniel.g...@fudepan.org.ar on 4 Oct 2011 at 6:13

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r245.

Original comment by hugo.arregui on 4 Oct 2011 at 10:28