Instancing and construction fixups for clang
This commit is contained in:
parent
71c4df0cac
commit
ea71f958f4
@ -79,7 +79,9 @@ namespace util {
|
||||
{ return; }
|
||||
}
|
||||
|
||||
|
||||
namespace util {
|
||||
template struct extent<unsigned int>;
|
||||
template struct extent<unsigned long>;
|
||||
template struct extent<double>;
|
||||
|
||||
}
|
||||
|
10
ip.cpp.rl
10
ip.cpp.rl
@ -40,9 +40,13 @@ ipv4::ip::ip (uint32_t _integer):
|
||||
{ ; }
|
||||
|
||||
|
||||
ipv4::ip::ip (uint8_t a, uint8_t b, uint8_t c, uint8_t d):
|
||||
m_octets ({ a, b, c, d })
|
||||
{ ; }
|
||||
ipv4::ip::ip (uint8_t a, uint8_t b, uint8_t c, uint8_t d)
|
||||
{
|
||||
m_octets[0] = a;
|
||||
m_octets[1] = b;
|
||||
m_octets[2] = c;
|
||||
m_octets[3] = d;
|
||||
}
|
||||
|
||||
|
||||
ipv4::ip&
|
||||
|
@ -31,7 +31,7 @@ namespace util {
|
||||
template <typename Ret, typename ...Args>
|
||||
class signal {
|
||||
public:
|
||||
typedef Ret (*callback_function)(Args...);
|
||||
//typedef Ret (*callback_function)(Args...);
|
||||
typedef std::function<Ret(Args...)> callback_object;
|
||||
|
||||
protected:
|
||||
@ -81,9 +81,9 @@ namespace util {
|
||||
|
||||
|
||||
/// Add a callback to the list.
|
||||
const cookie
|
||||
connect (const callback_function &_cb)
|
||||
{ return m_children.insert (m_children.end (), _cb); }
|
||||
//const cookie
|
||||
//connect (const callback_function &_cb)
|
||||
// { return m_children.insert (m_children.end (), _cb); }
|
||||
|
||||
|
||||
void disconnect (const cookie _cb)
|
||||
|
Loading…
x
Reference in New Issue
Block a user