add_executable(loco_test ${TESTS})
target_link_libraries(loco_test gtest_main)
+target_link_libraries(loco_test stdex)
target_link_libraries(loco_test loco)
add_test(loco_test loco_test)
#include "loco/ADT/AnnotatedItem.h"
#include <gtest/gtest.h>
+#include <stdex/Memory.h>
namespace
{
{
static std::unique_ptr<DerivedAnnotation<N>> make(void)
{
- // TODO Use stdex::make_unique
- return std::unique_ptr<DerivedAnnotation<N>>{new DerivedAnnotation<N>};
+ return stdex::make_unique<DerivedAnnotation<N>>();
}
};
#include <gtest/gtest.h>
+#include <stdex/Memory.h>
#include <vector>
-// Use "stdex" later
-namespace
-{
-
-template <typename T, typename... Args> std::unique_ptr<T> make_unique(Args &&... args)
-{
- // NOTE std::make_unique is missing in C++11 standard
- return std::unique_ptr<T>(new T(std::forward<Args>(args)...));
-}
-
-} // namespace
+using stdex::make_unique;
TEST(VerifierTest, valid_minimal)
{
#include <gtest/gtest.h>
-// TODO Use "stdex"
-namespace
-{
-
-template <typename T, typename... Args> std::unique_ptr<T> make_unique(Args &&... args)
-{
- // NOTE std::make_unique is missing in C++11 standard
- return std::unique_ptr<T>(new T(std::forward<Args>(args)...));
-}
+#include <stdex/Memory.h>
-} // namespace
+using stdex::make_unique;
#if 0
>>> MaxPool_Float_000 testcase