2 次代碼提交 d1edafb187 ... 5f7f6aaeee

作者 SHA1 備註 提交日期
  Eric Ramat 5f7f6aaeee Remove std::binary_function 2 年之前
  Eric Ramat d33a0f8e9a Add CXX directive 2 年之前
共有 2 個文件被更改,包括 2 次插入4 次删除
  1. 1 0
      src/CMakeLists.txt
  2. 1 4
      src/artis-star/common/event/InternalEvent.hpp

+ 1 - 0
src/CMakeLists.txt

@@ -13,6 +13,7 @@ TARGET_LINK_LIBRARIES(artislib ${Boost_LIBRARIES})
 SET_TARGET_PROPERTIES(artislib PROPERTIES
         VERSION 0
         OUTPUT_NAME "artis-star-${ARTIS_VERSION_SHORT}"
+        LINKER_LANGUAGE CXX
         CLEAN_DIRECT_OUTPUT 1)
 
 INSTALL(TARGETS artislib RUNTIME DESTINATION bin LIBRARY DESTINATION

+ 1 - 4
src/artis-star/common/event/InternalEvent.hpp

@@ -29,8 +29,6 @@
 
 #include "artis-star/common/Model.hpp"
 
-#include <functional>
-
 namespace artis::common {
 
 template<typename Time>
@@ -74,8 +72,7 @@ private:
 };
 
 template<typename Event>
-struct EventCompare
-  : std::binary_function<Event, Event, bool> {
+struct EventCompare {
   bool operator()(const Event &left, const Event &right) const { return left >= right; }
 };