-/* Copyright (c) 2016. The SimGrid Team.
+/* Copyright (c) 2016-2017. The SimGrid Team.
* All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
template <class T>
class Future {
public:
- Future() {}
+ Future() { /* Nothing to do*/}
Future(simgrid::kernel::Future<T> future) : future_(std::move(future)) {}
bool valid() const { return future_.valid(); }
std::pair<void(whatever::*)(), whatever*> memberptr;
char any1[sizeof(std::pair<void(*)(),void*>)];
char any2[sizeof(std::pair<void(whatever::*)(), whatever*>)];
- TaskUnion() {}
- ~TaskUnion() {}
+ TaskUnion() { /* Nothing to do */}
+ ~TaskUnion() { /* Nothing to do */}
};
#endif
}
public:
-
- Task() {}
- Task(std::nullptr_t) {}
+ Task() { /* Nothing to do */}
+ Task(std::nullptr_t) { /* Nothing to do */}
~Task()
{
this->clear();
exception,
};
public:
- Result() {}
+ Result() { /* Nothing to do */}
~Result() { this->reset(); }
// Copy (if T is copyable) and move:
size_t size() const { return len; }
size_t length() const { return len; }
bool empty() const { return len != 0; }
- void shrink_to_fit() {}
+ void shrink_to_fit() { /* Being there, but doing nothing */}
// Alement access
char* data() { return string_data::data; }
*/
union fake_host {
simgrid::s4u::Host host;
- fake_host() {}
- ~fake_host() {}
+ fake_host() { /* Nothing to do*/}
+ ~fake_host() { /* Nothing to do*/}
};
fake_host foo;
const size_t offset = (char*)&foo.host.getName() - (char*)&foo.host;
-/* Copyright (c) 2008-2015. The SimGrid Team.
+/* Copyright (c) 2008-2017. The SimGrid Team.
* All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
T buffer;
public:
- Remote() {}
- ~Remote() {}
+ Remote() { /* Nothing to do */}
+ ~Remote() { /* Nothing to do */}
Remote(T& p) { std::memcpy(&buffer, &p, sizeof(buffer)); }
Remote(Remote const& that) { std::memcpy(&buffer, &that.buffer, sizeof(buffer)); }
Remote& operator=(Remote const& that)
static void mm_fake_free(void *p)
{
+ // Nothing to do
}
/* Function signatures for the main malloc functions: */