Building with Visual Studio 2015

36 views
Skip to first unread message

Dieter Morgenroth

unread,
Feb 18, 2016, 10:40:02 AM2/18/16
to CppWAMP
Hello there,

is there anyone out there who had success building and using this with Visual Studio 2015?

I get compiler errors where the vc compiler is not happy with some of the template code:


Options<D>::optionOr(
    const String& key, /**< The key to search under. */
    T&& fallback       /**< The fallback value to return if the key was
                            not found. */
)


Error C2061 syntax error: identifier 'ValueTypeOf<`template-type-parameter-1'>' cppwamp c:\git\wampcpp\cppwamp\cppwamp\include\cppwamp\internal\options.ipp 66



template <typename D>
Options<D>::Options() {}

Error C2143 syntax error: missing ';' before '{' cppwamp c:\git\wampcpp\cppwamp\cppwamp\include\cppwamp\internal\options.ipp 80
Error C2447 '{': missing function header (old-style formal list?) cppwamp c:\git\wampcpp\cppwamp\cppwamp\include\cppwamp\internal\options.ipp 80


Before I go in there and change code  I wanted to ask if someone else had the same problems. I am willing to create a pull request once I got it working. I can't really check if I break anything for the other compilers though.


Best regards,
Dieter

Emile Cormier

unread,
Feb 18, 2016, 10:52:16 AM2/18/16
to CppWAMP
Hello Dieter,

No one has yet made a serious attempt to work around VS2015's errors. There is an open GitHub issue here: https://github.com/ecorm/cppwamp/issues/8. I've been meaning to attempt this myself, but I'm short on spare time at the moment.

I would welcome a pull request, and can check that it doesn't break things in GCC or Clang.

Cheers,
Emile Cormier
Reply all
Reply to author
Forward
0 new messages