lichao
2021-03-31 6eefba812ede29549af3633c490f2e85a4805524
utest/utest.cpp
@@ -1,18 +1,23 @@
#include <stdio.h>
#include <string>
#include <vector>
#include <thread>
#include "defs.h"
#include "pubsub.h"
#include "socket.h"
#include "util.h"
#include <atomic>
#include <boost/uuid/uuid_generators.hpp>
#include <boost/uuid/uuid_io.hpp>
#include "pubsub.h"
#include "defs.h"
#include "util.h"
#include "socket.h"
#include <stdio.h>
#include <string>
#include <thread>
#include <vector>
template <class A, class B> struct IsSameType { static const bool value = false; };
template <class A> struct IsSameType<A,A> { static const bool value = true; };
template <class A, class B>
struct IsSameType {
   static const bool value = false;
};
template <class A>
struct IsSameType<A, A> {
   static const bool value = true;
};
BOOST_AUTO_TEST_CASE(Temp)
{
@@ -107,7 +112,6 @@
        std::unique_lock<std::mutex> lk(mutex);
        cv.wait(lk);
    };
    auto Pub = [&](const std::string &topic) {
@@ -147,10 +151,12 @@
    bus.Stop();
}
inline int MyMin(int a, int b) {
inline int MyMin(int a, int b)
{
    printf("MyMin\n");
    return a < b ? a : b;
}
int test_main(int argc, char *argv[])
{
    printf("test main\n");
@@ -164,4 +170,3 @@
    return 0;
}