Skip to content

Commit

Permalink
now all compiles nothing runs
Browse files Browse the repository at this point in the history
  • Loading branch information
mabels committed Sep 9, 2016
1 parent edb40cd commit 840051c
Show file tree
Hide file tree
Showing 7 changed files with 579 additions and 600 deletions.
3 changes: 2 additions & 1 deletion cpp/src/ipv6_unspec.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#include "ipaddress.hpp"

class Ipv6Unspec {
public:
// The address with all zero bits is called the +unspecified+ address
// (corresponding to 0.0.0.0 in IPv4). It should be something like this:
//
Expand Down Expand Up @@ -54,7 +55,7 @@ class Ipv6Unspec {
// // => => "::/128"
//
static IPAddress create() {
return IPAddress.parse("::").unwrap();
return IPAddress::parse("::").unwrap();
}
// class IPv6::Unspecified
};
Expand Down
10 changes: 5 additions & 5 deletions cpp/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,28 +35,28 @@ add_test(test_rle test_rle)
add_executable(test_crunchy test_crunchy.cpp ../src/crunchy.cpp)
add_test(test_crunchy test_crunchy)

add_executable(test_prefix32 test_prefix32.cpp ../src/crunchy.cpp)
add_executable(test_prefix32 test_prefix32.cpp ../src/crunchy.cpp ../src/rle.cpp ../src/ipaddress.cpp ../src/ipv4.cpp)
add_test(test_prefix32 test_prefix32)
target_link_libraries(test_prefix32 ${Boost_LIBRARIES})

add_executable(test_prefix128 test_prefix128.cpp ../src/crunchy.cpp)
add_executable(test_prefix128 test_prefix128.cpp ../src/crunchy.cpp ../src/rle.cpp ../src/ipaddress.cpp ../src/ipv4.cpp)
add_test(test_prefix128 test_prefix128)
target_link_libraries(test_prefix128 ${Boost_LIBRARIES})


add_executable(test_ipv6_unspec test_ipv6_unspec.cpp ../src/crunchy.cpp)
add_executable(test_ipv6_unspec test_ipv6_unspec.cpp ../src/crunchy.cpp ../src/rle.cpp ../src/ipaddress.cpp ../src/ipv4.cpp)
add_test(test_ipv6_unspec test_ipv6_unspec)
target_link_libraries(test_ipv6_unspec ${Boost_LIBRARIES})

add_executable(test_ipv6_mapped test_ipv6_mapped.cpp ../src/crunchy.cpp)
add_executable(test_ipv6_mapped test_ipv6_mapped.cpp ../src/crunchy.cpp ../src/rle.cpp ../src/ipaddress.cpp ../src/ipv4.cpp)
add_test(test_ipv6_mapped test_ipv6_mapped)
target_link_libraries(test_ipv6_mapped ${Boost_LIBRARIES})

add_executable(test_ipv6_loopback test_ipv6_loopback.cpp ../src/crunchy.cpp ../src/rle.cpp ../src/ipaddress.cpp ../src/ipv4.cpp)
add_test(test_ipv6_loopback test_ipv6_loopback)
target_link_libraries(test_ipv6_loopback ${Boost_LIBRARIES})

add_executable(test_ipv6 test_ipv6.cpp ../src/crunchy.cpp)
add_executable(test_ipv6 test_ipv6.cpp ../src/crunchy.cpp ../src/rle.cpp ../src/ipaddress.cpp ../src/ipv4.cpp)
add_test(test_ipv6 test_ipv6)
target_link_libraries(test_ipv6 ${Boost_LIBRARIES})

Expand Down
Loading

0 comments on commit 840051c

Please sign in to comment.