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
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
Glen Fraser
259f130a60
Fix build warnings from unused enums in switch; unused function arg
2020-10-16 11:56:07 +02: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
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
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
Joshua Thompson
af7a5d7c49
#487 : Fix warning for implicit 'this' lambda capture in C++20.
2019-08-22 10:00:37 -04:00
Vladyslav Tronko
273bc4a94a
Fix description of ChaiScriptBasic::use
...
Add missing word
2019-06-05 15:19:31 +03:00
Jason Turner
27072a77e6
Get VS compiling
2019-04-20 12:26:12 -06:00
Jason Turner
b7e26b9076
Attempt to get C++17 work compiling for VS 2019
2019-04-20 12:09:24 -06:00
Yuri Yaryshev
7a67963ca7
Fix: added 'static' to thread_local variable in chaiscript/chaiscript_threading.hpp
...
Because it's a singleton and should be one instance per thread, without it will be singleton per call,
also it won't compile on VS2017 15.8.9
The error:
chaiscript\include\chaiscript\chaiscript_threading.hpp(107): error C2480: 'my_t': 'thread' is only valid for data items of static extent
2018-11-15 18:59:18 +03:00
Jason Turner
c737f2419b
Merge pull request #453 from AlekMosingiewicz/error_on_double_conversion
...
Error on double conversion
2018-08-15 13:33:13 -06:00
Jason Turner
5db87a9175
Merge branch 'release-6.x' into develop
2018-08-15 13:13:44 -06:00
Jason Turner
3af55d60f2
Update version to 6.1.1
2018-08-15 13:12:36 -06:00
Jason Turner
44dab4d45c
Deal with returning of & to * types
2018-08-15 13:10:23 -06:00
Alek Mosingiewicz
9f9436e741
Remove newlines.
2018-08-13 21:19:15 +02:00
Alek Mosingiewicz
b9741d9433
Make conversion_error inherit from bad_boxed_cast.
2018-08-13 18:25:43 +02:00
Alek Mosingiewicz
eb3ee28cee
Some better naming for test.
2018-08-13 17:56:49 +02:00
Alek Mosingiewicz
80f11de41e
Make information on source and target types in Type Conversion
...
Exception public.
2018-08-10 17:57:15 +02:00
Alek Mosingiewicz
27bee4a266
Bypass the mutex problem when looking for conversion, automatic
...
test.
2018-08-10 17:29:46 +02:00
Alek Mosingiewicz
ecd6000d54
Throw conversion error when conversion already exists.
2018-08-07 18:00:58 +02:00
Jason Turner
2dfd444178
Formatting cleanup
2018-06-11 05:27:48 -06:00
Jason Turner
d0d08d2ed9
Merge branch 'best_practices' into develop
2018-06-03 16:40:29 -06:00
Jason Turner
aa61df941b
Merge pull request #420 from StanEpp/c++17
...
Add support for chained dot calls.
2018-06-03 15:47:05 -06:00
Jason Turner
a880319db8
Merge branch 'develop' into best_practices
2018-05-30 08:30:29 -06:00
Jason Turner
c19705da5d
Merge remote-tracking branch 'origin/c++17' into develop
2018-05-29 13:21:09 -06:00
Jason Turner
2d762c8be3
Update copyrights to 2018
2018-05-29 11:51:15 -06:00
Jason Turner
ac0d7ce949
Fix lifetime of objects in ranged for loops
...
Currently this is going to incur a performance cost, but it's correct.
It may need to be reevaluated.
Closes #392
2018-05-29 09:26:59 -06:00
Jason Turner
98c362d038
Properly report which file failed to be loaded
...
closes #437
2018-05-29 07:45:43 -06:00
Jason Turner
145acd378b
Take parse depth to 512, make it templated
...
Closes #442
2018-05-29 07:09:25 -06:00
Jason Turner
f09b2d8731
Update release notes and fix compiler warnings
2018-05-26 20:29:25 -06:00
Jason Turner
61dfb22af8
Merge pull request #439 from AlekMosingiewicz/handle-bom-in-script
...
Handle BOM in the beginning of the script
2018-05-26 14:08:29 -06:00
Jason Turner
9c26289254
Merge branch 'develop' of github.com:ChaiScript/ChaiScript into develop
2018-05-25 16:50:20 -06:00
Jason Turner
8bc7b9bfa1
Add notes for v6.1.0 release prep
2018-05-25 16:49:57 -06:00
Jason Turner
dae0f3dd62
Merge pull request #411 from stephenberry/develop
...
Critical fix of type_info ordering (less than operator)
2018-05-25 16:27:56 -06:00
Jason Turner
805e7c0917
Fix up some error handling
2018-05-25 14:33:17 -06:00
Jason Turner
e0f29e0f7c
Limit parse depth to avoid stackoverflow
2018-05-25 08:34:17 -06:00
Alek Mosingiewicz
b3f77f0c82
Fix implicit conversion warning.
2018-05-25 12:17:22 +02:00
Alek Mosingiewicz
0f67b2f430
Another fix for Clang.
2018-05-25 12:07:50 +02:00
Alek Mosingiewicz
fb635033a9
Fix for Clang.
2018-05-25 11:56:10 +02:00
Alek Mosingiewicz
393f8d31ab
Travis build quick fix.
2018-05-25 11:48:27 +02:00
Alek Mosingiewicz
1711d50eff
Another attempt to remedy the problem occuring on Clang.
2018-05-25 08:38:25 +02:00
Alek Mosingiewicz
42c355a8d0
Revert "Attempt to remedy the problem occuring on Clang."
...
This reverts commit 0e964da42658a4e7e5bebe281f2c125575f34246.
2018-05-25 08:06:35 +02:00
Alek Mosingiewicz
0e964da426
Attempt to remedy the problem occuring on Clang.
2018-05-25 07:59:34 +02:00
Alek Mosingiewicz
51693aa0bd
Skip buffer initialization.
2018-05-25 06:57:22 +02:00
Alek Mosingiewicz
51bb793664
Initialize buffer to store potential BOM data before storing
...
anything inside it.
2018-05-24 22:06:59 +02:00