Bernd Amend
2c92e83afa
drop CPP17_FLAG since cmake is already taking care of it
2021-05-22 18:45:12 +02:00
Bernd Amend
c580726020
Change the default value of USE_LIBCXX to FALSE
...
By default clang is already using the system
standard library. Therefore it is unexpected
that chaiscript always uses libcxx if clang
is used.
2021-05-22 18:45:12 +02:00
Bernd Amend
816cb5e8e2
unify formatting if ( -> if(
2021-05-22 18:45:12 +02:00
Bernd Amend
b3ee667ca5
don't mark a function virtual that is overriden.
2021-05-22 18:45:12 +02:00
Bernd Amend
1302e28e32
replace the deprecated is_pod_v with is_trivial_v
...
is_pod_v was deprecated in C++20, is_pod_v can be
replaced with is_trivial_v && is_standard_layout_v.
I don't see any benefit from is_standard_layout_v,
but I could have missed something.
2021-05-22 18:45:12 +02:00
Bernd Amend
cf7821cb1e
fix ChaiScript#537
2021-05-22 18:45:12 +02:00
Bernd Amend
5ff3679811
fix u8"" compilation error in g++11 with -std=c++20
2021-05-22 18:45:12 +02:00
Bernd Amend
e8e47173fb
fix a couple of g++s -Wnoexcept warnings
2021-05-22 18:45:08 +02:00
Bernd Amend
19929be684
don't default implicitly deleted operator=/ctor ChaiScript#527
2021-05-22 18:44:54 +02:00
Bernd Amend
c4e1e1965e
remove not required ";"
2021-05-22 14:09:24 +02:00
Bernd Amend
1e6263976f
don't return voids
2021-05-22 14:05:52 +02:00
Bernd Amend
2b3bddb02d
replace typedef with using
2021-05-22 14:04:04 +02:00
Bernd Amend
684522a8b7
fix -Wcovered-switch-default warnings
2021-05-22 14:01:39 +02:00
Bernd Amend
c26fd14953
remove else after return
2021-05-22 13:55:04 +02:00
Bernd Amend
bd933592a9
hash.hpp: explicitly cast to uint32_t
2021-05-22 13:51:24 +02:00
Bernd Amend
e62f0d3296
drop useless statics and/or add [[nodiscard]]
2021-05-22 13:50:57 +02:00
Bernd Amend
1235fdad7c
move ctor arguments into the variables/base class ctors
2021-05-22 13:47:45 +02:00
Bernd Amend
c47b9e3b0d
replace const std::string_view with std::string_view
2021-05-22 13:40:32 +02:00
Bernd Amend
180a6d4a1c
update catch to version 2.13.6
2021-05-22 13:18:49 +02:00
Bernd Amend
52a9fa47c1
replace std::vector::push_back with emplace_back
2021-05-22 13:18:32 +02:00
Rob Loach
964a36bdcd
Merge pull request #504 from draghan/lambdas_can_into_predicates_unittests
...
Add unit test covering lambdas returning boolean
2021-04-11 16:50:31 -04:00
draghan
0a3bc48788
Add unit test covering issue #481
...
Implemented unit test which is validating whether a lambda from
Chaiscript could return a boolean value without throwing any exception.
The same test case is checking whether lambda with boolean return value
could be called peacefully from Chaiscript.
2021-03-27 21:17:55 +01:00
draghan
301f2e7061
Merge remote-tracking branch 'upstream/develop' into develop
2021-03-27 21:17:15 +01:00
draghan
940afb399c
Revert "Fix bug #481 "
...
This reverts commit a3c033d1db07a74e5f0c1b7a3910b51a226aba83.
2021-03-27 21:17:03 +01:00
Rob Loach
586779ccca
Merge pull request #549 from robertFrysch/develop
...
map_conversion: copy forced for loop var `p` (incompatible ref type)
2021-01-17 01:39:32 -05:00
frysch
ab691f687d
map_conversion: copy forced for loop var p (incompatible ref type)
...
The underlying pair that is dereferenced from the iterator has always `const` qualified `first` member (key type). Therefore, an unnecessary temporary was created and bounded to the const ref to the pair. This could be also fixed with `for (const auto &p : from_map)`.
2021-01-15 09:14:49 +01:00
Rob Loach
cb55083603
Merge pull request #548 from ChaiScript/stack-vector-pop-back
...
Fix stack_vector.pop_back() pre-decrementing
2021-01-07 15:55:48 -05:00
Rob Loach
c7fcc9f7d9
Fix stack_vector.pop_back() pre-decrementing
...
Fixes #547 , found by @balint-luko.
2021-01-07 13:15:47 -05:00
Rob Loach
d7832661e7
Merge pull request #503 from SG-Skril/develop
...
Fix for lambdas returning booleans
References #481
2020-12-11 14:46:50 -05:00
Rob Loach
c8c9f805f6
Merge pull request #539 from totalgee/fix_VS2019
...
Fixes for VS2019 and C++17 compilation
2020-10-16 09:35:50 -04:00
Glen Fraser
259f130a60
Fix build warnings from unused enums in switch; unused function arg
2020-10-16 11:56:07 +02:00
Glen Fraser
12f034b424
Change AppVeyor to use VS2019 for Windows build/testing
2020-10-16 11:32:51 +02:00
Rob Loach
7178460415
Merge pull request #540 from Rabios/patch-1
...
Fix typo mistake in ranged for loop
2020-09-08 00:34:51 -04:00
Rabia Alhaffar
009b2963a8
Fix typo mistake in one of for loops
2020-09-08 05:23:08 +03:00
Glen Fraser
f355d27aea
Fix GCC build error "explicit specialization in non-namespace scope"
...
- other compilers don't complain, but for GCC needed to move the
template constructor specialization (array of size 0) outside the
class declaration.
2020-09-04 13:52:25 +02:00
Glen Fraser
350acbf254
Fix compile errors on VS2019 (C++17) with Function_Params
...
- needed to disambiguate between chaiscript::Function_Params and
chaiscript::dispatch::detail::Function_Params in several places.
2020-09-04 12:57:49 +02:00
Glen Fraser
4993e4773b
Merge branch 'develop' into temp
2020-09-04 11:46:11 +02:00
Glen Fraser
cb9a8587b6
Remove MSVC special case in 'Object copy counts' unit test
2020-09-04 11:45:08 +02:00
Glen Fraser
dd69230f19
Fix issues with Function_Params constructors (array and vector args)
...
- code (on MSVC) was asserting due to trying to dereference invalid
pointers (dereferencing the end iterator, even if only to get its
address!).
- when a Function_Params is constructed with an empty vector, you
can't return the address of the vec.front() -- instead we use
nullptr for the m_begin and m_end pointers.
2020-09-04 11:27:52 +02:00
Rob Loach
6abbd9dd1b
Merge pull request #523 from tankorsmash/patch-1
...
fix typo in cheatsheet; add cpp highlighting
2020-05-22 17:50:48 -04:00
TankorSmash
aa3c4ae797
fix typo in cheatsheet; add cpp highlighting
2020-05-22 00:24:43 -04:00
Rob Loach
50ca037da9
Merge pull request #512 from clairvoyant/develop
...
Fix for warnings: by-copy capture of ‘this’ and unused-local-typedefs
2020-02-26 08:01:10 -05:00
Jose Rubio
85e4598986
Fix for warnings: by-copy capture of ‘this’ and unused-local-typedefs
...
There are two warnings when compiling with GCC 7.4.1 or clang 5.0.1.
1. warning: explicit by-copy capture of ‘this’ redundant with by-copy capture default
2. warning: typedef ... locally defined but not used [-Wunused-local-typedefs]
This change removes [2] and it compacts the lambda capture clause in [1].
2020-01-13 16:36:32 +01:00
SG-Skril
0e243b006a
Potential fix for issue ChaiScript#481
...
(bool cannot be stored in Boxed_Number)
2019-11-10 18:07:47 +01:00
Dariusz Pyś
a3c033d1db
Fix bug #481
...
Applied solution sent by SG-Skril here: https://github.com/ChaiScript/ChaiScript/issues/481
2019-11-10 00:46:22 +01:00
Rob Loach
a7dae37a23
Update release notes for 6.1.1
2019-11-09 09:44:07 -05:00
Rob Loach
0ec4a928a6
Merge pull request #502 from guoyunhe/patch-1
...
Use CMAKE_INSTALL_LIBDIR instead of lib
2019-11-09 09:35:33 -05:00
Rob Loach
d355787820
Merge pull request #495 from Josh-Thompson/#487
...
#487 : Fix warning for implicit 'this' lambda capture in C++20.
2019-11-09 09:35:22 -05:00
Guo Yunhe
cb1867dfd1
Update CMakeLists.txt
2019-11-09 12:01:50 +02:00
Guo Yunhe
0aa186abbe
Update CMakeLists.txt
2019-11-09 11:37:32 +02:00