Ver Fonte

对附属的测试文件进行一定的修改

Gogs há 2 meses atrás
pai
commit
9946c9df9d
2 ficheiros alterados com 4 adições e 3 exclusões
  1. 1 1
      .gitignore
  2. 3 2
      test/buid.sh

+ 1 - 1
.gitignore

@@ -1,6 +1,6 @@
 test/builder
 test/CRTP
-
+test/factory
 
 
 

+ 3 - 2
test/buid.sh

@@ -2,7 +2,8 @@ rm -rf *
 echo "开始构建"
 g++ -O3 ../CRTP.cpp -o CRTP -std=c++20
 g++ -O3 ../builder.cpp -o builder -std=c++20
-
+g++ -O3 ../factory.cpp  -o factory -std=c++20
 echo "开始运行"
 ./builder
-./CRTP
+./CRTP
+./factory