[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[uracoli-devel] [bug #30527] radio_param_t no longer compiles for C++
From: |
Axel Wachtler |
Subject: |
[uracoli-devel] [bug #30527] radio_param_t no longer compiles for C++ |
Date: |
Fri, 23 Jul 2010 07:40:33 +0000 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.19) Gecko/20081217 SeaMonkey/1.1.14 |
Follow-up Comment #2, bug #30527 (project uracoli):
I tried the following resolution, which is not that elegant
as:
typdef union radio_param_t
{
....
} radio_param_t;
but it could eliminate the hazard that it is removed later on again:
union radio_param_u
{
channel_t channel;
...
#if defined __cplusplus
radio_param_u(int8_t c) { channel = c; }
...
#endif
};
typedef union radio_param_u radio_param_t;
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/bugs/?30527>
_______________________________________________
Message sent via/by Savannah
http://savannah.nongnu.org/