Hi,
if you put "struct record {double r;} ;" in main method as below:
int
main (int argc, char *argv[])
{
struct record {double r;} ;
Mac48Address a;
struct record r;
std::map < Mac48Address *, struct record > map ;
map.insert(std::make_pair(&a,
r));
}
then compiling error : ‘template<class _T1, class _T2> struct std::pair’uses local type ‘main(int, char**)::record’
which is very similar to your error.
So my suggestion is put "struct record {double r;} ;" outside of the method.
please have a try.