You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am running Visual Studio 2013 with update 4 installed. This code has multiple build issues.
In the pair and tuple specializations for print_container_helper::printer, it chokes on this line:
using ostream_type = print_container_helper<T, TChar, TCharTraits, TDelimiters>::ostream_type;
I've fixed it locally with this:
#ifdef _MSC_VER
using ostream_type = std::basic_ostream<TChar, TCharTraits>;
#else
using ostream_type = print_container_helper<T, TChar, TCharTraits, TDelimiters>::ostream_type;
#endif
This isn't the greatest fix because it hardcodes it to basic_ostream, rather than referencing print_container_helper::ostream_type, but at least it works.
Once that builds, the library is unusable since it now chokes on the main interface that a caller would use: the << operator.
error C2679: binary '<<' : no operator found which takes a right-hand operand of type 'std::vector<int,std::allocator<_Ty>>' (or there is no acceptable conversion)
The user must specifically add each type they want the overloaded << operator to work with, such as:
IMHO, if the main example shows it working with a vector, then it should work like that out of the box without the user having to specifically enter each type they want to work with.
With those changes, I have it working locally. Thanks.
The text was updated successfully, but these errors were encountered:
I am running Visual Studio 2013 with update 4 installed. This code has multiple build issues.
I've fixed it locally with this:
This isn't the greatest fix because it hardcodes it to basic_ostream, rather than referencing print_container_helper::ostream_type, but at least it works.
Cannot resolve to the proper type in your most basic example:
VS says:
The user must specifically add each type they want the overloaded << operator to work with, such as:
IMHO, if the main example shows it working with a vector, then it should work like that out of the box without the user having to specifically enter each type they want to work with.
With those changes, I have it working locally. Thanks.
The text was updated successfully, but these errors were encountered: