Mustache: update to 4.0.

This commit is contained in:
John 2019-10-29 23:02:25 +01:00
parent 0ea31b7d91
commit bd84380833
2 changed files with 2 additions and 35 deletions

View File

@ -1,33 +0,0 @@
From 33c8f46a28fb80144cf6d5a01352de0ef8474880 Mon Sep 17 00:00:00 2001
From: John Zimmermann <johnz@posteo.net>
Date: Tue, 29 Jan 2019 13:59:16 +0100
Subject: [PATCH] Fix compiling of tests on gcc8.2
```
In file included from tests.cpp:32:
tests.cpp: In function 'void ____C_A_T_C_H____T_E_S_T____114()':
tests.cpp:1094:48: error: catching polymorphic type 'class std::bad_function_call' by value [-Werror=catch-value=]
CHECK_THROWS_AS(tmpl.render(dat), std::bad_function_call);
^~~~~~~~~~~~~~~~~
cc1plus: all warnings being treated as error
```
---
tests.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git tests.cpp tests.cpp
index a9176b7..276f0b3 100644
--- tests.cpp
+++ tests.cpp
@@ -1091,7 +1091,7 @@ TEST_CASE("custom_escape") {
mustache::escape_handler esc;
tmpl.set_custom_escape(esc);
object dat({ {"what", "\"friend\""} });
- CHECK_THROWS_AS(tmpl.render(dat), std::bad_function_call);
+ CHECK_THROWS_AS(tmpl.render(dat), std::bad_function_call&);
}
}
--
2.20.1

View File

@ -1,13 +1,13 @@
# Template file for 'Mustache'
pkgname=Mustache
version=3.2.1
version=4.0
revision=1
short_desc="Mustache text templates for modern C++"
maintainer="John <johnz@posteo.net>"
license="BSL-1.0"
homepage="https://github.com/kainjow/Mustache"
distfiles="https://github.com/kainjow/Mustache/archive/v${version}.tar.gz"
checksum=0d17298a81c08f12ebc446cdee387268a395d34bb724050fe67d5ce8c4e98b7a
checksum=17129681ee207404409d71bdc649f08d47029e3dea0ef68e5cd47868de1be23c
do_check() {
make