From: HawxChen <yingjheng.c...@gmail.com>
Committer: Avi Kivity <a...@scylladb.com>
Branch: master

Fix compilation error on older compilers

Complete the commit: a675ae787660648a22cef984522e27bafb398bc8.

Fixes #896.

Signed-off-by: HawxChen <yingjheng.c...@gmail.com>
Message-Id: <1501102889-14514-1-git-send-email-yingjheng.c...@gmail.com>
Signed-off-by: Avi Kivity <a...@scylladb.com>

---
diff --git a/include/osv/aligned_new.hh b/include/osv/aligned_new.hh
--- a/include/osv/aligned_new.hh
+++ b/include/osv/aligned_new.hh
@@ -57,7 +57,7 @@ T* aligned_array_new(size_t len) {

 template<typename T>
 void aligned_array_delete(T* p) {
-    static_assert(sizeof(T) > sizeof(size_t));
+ static_assert(sizeof(T) > sizeof(size_t), "small T in aligned_array_new");
     size_t len = *(size_t*)p;
     for (unsigned i = 0; i < len ; i++) {
         ++p;

--
You received this message because you are subscribed to the Google Groups "OSv 
Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to osv-dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to