These are chat archives for ChaiScript/ChaiScript

5th
Dec 2017
schoetbi
@schoetbi
Dec 05 2017 14:39
Hi, I just tried the v6.0.0 with Visual Studio 2017 but get an error C2280 in dispatchkit.hpp:1337. Is this a known issue? Is my compiler supported?
Jason Turner
@lefticus
Dec 05 2017 15:04
It should be supported, it's compiling with appveyor
do you have the latest updates to visual studio installed?
schoetbi
@schoetbi
Dec 05 2017 15:06
I have this version: Visual C++ 2017 00369-60000-00001-AA738
It seems that on appvayor you only use VS14 and VS15 not VS17. Right? I converted the dynamic_pointer_casts to dynamic_cast<T*>(src.get()) on a few places and I got it compiling further but not completely.
Jason Turner
@lefticus
Dec 05 2017 15:10
I just built release v6.0.0 on vs2017 with no problems locally
and yes your compiler seems to be out of date
Looking at the version number on the top: I have VS 15.4.4
Jason Turner
@lefticus
Dec 05 2017 15:26
I'm curious what line of which cpp file is causing the error you are seeing
schoetbi
@schoetbi
Dec 05 2017 15:30
It started with dispatchkit.hpp line 1337 But maybe I need /std:c++latest. But my updater runs forever
auto dynamic_lhs(std::dynamic_pointer_cast<const dispatch::Dynamic_Proxy_Function>(lhs)); When I change to this it works: auto dynamic_lhs(dynamic_cast<const dispatch::Dynamic_Proxy_Function*>(lhs.get()));
Jason Turner
@lefticus
Dec 05 2017 15:31
no, you don't need C++latest - I'm running my build straight from the exact release using the cmake generated visual studio project
those two operations are doing very different things. One is casting a shared_ptr the other is casting the thing contained inside the shared_ptr
and it's a C++11 feature for dynamic_pointer_cast
are you building using cmake?
schoetbi
@schoetbi
Dec 05 2017 15:34
No I use Visual Studio
Jason Turner
@lefticus
Dec 05 2017 15:35
how did you get a visual studio project?
are you building chaiscript example files themselves or something that you created?
schoetbi
@schoetbi
Dec 05 2017 15:37
It is not the standard VS template since I use a windows realtime extension. I will let the updater work over night (Europe) and check tomorrow with the latest compiler. I really appreciate your quick response! Awesome!
Jason Turner
@lefticus
Dec 05 2017 15:39
Is it possible that your windows realtime extension means you are using something other than the normal standard library or the normal cl.exe?
That sounds like the most likely scenario for a problem like this, to me
Nilotpal Bhuyan
@Nilot352
Dec 05 2017 17:55
Hi, anybody here?
Jason Turner
@lefticus
Dec 05 2017 18:04
maybe
what's up?