Commit 5b65179c authored by Kenton Varda's avatar Kenton Varda

type-safety -> units

parent 5bec541e
...@@ -65,7 +65,7 @@ includekjdir = $(includedir)/capnproto ...@@ -65,7 +65,7 @@ includekjdir = $(includedir)/capnproto
includekj_HEADERS = \ includekj_HEADERS = \
src/kj/common.h \ src/kj/common.h \
src/kj/type-safety.h \ src/kj/units.h \
src/kj/memory.h \ src/kj/memory.h \
src/kj/array.h \ src/kj/array.h \
src/kj/string.h \ src/kj/string.h \
...@@ -95,7 +95,7 @@ lib_LIBRARIES = libcapnproto.a ...@@ -95,7 +95,7 @@ lib_LIBRARIES = libcapnproto.a
libcapnproto_a_SOURCES= \ libcapnproto_a_SOURCES= \
src/kj/common.c++ \ src/kj/common.c++ \
src/kj/type-safety.c++ \ src/kj/units.c++ \
src/kj/memory.c++ \ src/kj/memory.c++ \
src/kj/array.c++ \ src/kj/array.c++ \
src/kj/string.c++ \ src/kj/string.c++ \
...@@ -153,7 +153,7 @@ capnproto_test_SOURCES = \ ...@@ -153,7 +153,7 @@ capnproto_test_SOURCES = \
src/kj/common-test.c++ \ src/kj/common-test.c++ \
src/kj/logging-test.c++ \ src/kj/logging-test.c++ \
src/kj/string-test.c++ \ src/kj/string-test.c++ \
src/kj/type-safety-test.c++ \ src/kj/units-test.c++ \
src/capnproto/blob-test.c++ \ src/capnproto/blob-test.c++ \
src/capnproto/layout-test.c++ \ src/capnproto/layout-test.c++ \
src/capnproto/message-test.c++ \ src/capnproto/message-test.c++ \
......
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
#ifndef CAPNPROTO_COMMON_H_ #ifndef CAPNPROTO_COMMON_H_
#define CAPNPROTO_COMMON_H_ #define CAPNPROTO_COMMON_H_
#include <kj/type-safety.h> #include <kj/units.h>
#include <inttypes.h> #include <inttypes.h>
namespace capnproto { namespace capnproto {
......
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
// SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. // SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include "type-safety.h" #include "units.h"
#include <gtest/gtest.h> #include <gtest/gtest.h>
#include <iostream> #include <iostream>
......
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
// SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. // SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include "type-safety.h" #include "units.h"
namespace kj { namespace kj {
......
...@@ -63,7 +63,7 @@ struct Id { ...@@ -63,7 +63,7 @@ struct Id {
}; };
// ======================================================================================= // =======================================================================================
// Units // Quantity and UnitRatio -- implement unit analysis via the type system
template <typename T> constexpr bool isIntegral() { return false; } template <typename T> constexpr bool isIntegral() { return false; }
template <> constexpr bool isIntegral<char>() { return true; } template <> constexpr bool isIntegral<char>() { return true; }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment