New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
VS 2015 compilation issue #49
Comments
Only VS 2017 is supported, compilation errors in VS 2015 are a known issue
unfortunately (due to VS bugs).
Would it be possible for you to update?
Also, in any case, could you please point me at the page that gave you the
impression that VS 2015 was supported? (So that I can add a note there so
that other people won't be misled into thinking it's supported).
On 24 May 2017 1:35 pm, "chenar" <notifications@github.com> wrote:
Hello,
As I understood from closed issues is that VS 2015 Update 3 is supported
with fruit, isn't it?
I was just download repository, generated debug 32 project and pressed
build~
After this I received quite a lot of issues related to one file
injector.defn.h:
Error C2061 syntax error: identifier
'RemoveAnnotations<`template-type-parameter-1'>'
fixed_size_vector-exec fruit-master\include\fruit\impl\injector.defn.h 99
Could you help me to understand what I am doing wrong?
Thank you for your time!
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#49>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABeeF5HrAioTeAADLoNYcdA5b7hA2Oqiks5r9CQOgaJpZM4NlCq5>
.
|
Thank you for answer! I've looked at wiki/install and found that VS isn't supported. Thank you for nice solution. I am going to integrate it till the end of summer. |
Great.
Btw, the inconsistency between the wiki and the code+bug tracker is because
the wiki describes the latest release, not HEAD.
But by then there should be a stable release with VS support (I plan to
release 2.1.0 in a few weeks if everything goes as expected).
On 24 May 2017 8:45 pm, "chenar" <notifications@github.com> wrote:
Closed #49 <#49>.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#49 (comment)>, or mute the
thread
<https://github.com/notifications/unsubscribe-auth/ABeeF0yu9NaU1LAZbZ6-UKXJXHU3t2m_ks5r9IjhgaJpZM4NlCq5>
.
|
I'm still on VS2015 for the foreseeable future so I decided to look into the error. The following changes solves the compile issue diff --git a/include/fruit/component.h b/include/fruit/component.h
index 6ca41e8..1081403 100644
--- a/include/fruit/component.h
+++ b/include/fruit/component.h
@@ -649,9 +649,9 @@ public:
* other components.
*/
template <typename OtherComponent, typename... Args>
- PartialComponentWithReplacementInProgress<OtherComponent, Args...> replace(
+ auto replace(
OtherComponent(*)(Args...),
- Args... args);
+ Args... args) -> auto;
~PartialComponent();
diff --git a/include/fruit/impl/component.defn.h b/include/fruit/impl/component.defn.h
index b3303ef..ce55024 100644
--- a/include/fruit/impl/component.defn.h
+++ b/include/fruit/impl/component.defn.h
@@ -260,8 +260,8 @@ PartialComponent<Bindings...>::install(OtherComponent(*fun)(Args...), Args... ar
template <typename... Bindings>
template <typename OtherComponent, typename... ReplacedFunArgs>
-inline PartialComponent<Bindings...>::PartialComponentWithReplacementInProgress<OtherComponent, ReplacedFunArgs...>
-PartialComponent<Bindings...>::replace(OtherComponent(*fun)(ReplacedFunArgs...), ReplacedFunArgs... args) {
+inline auto
+PartialComponent<Bindings...>::replace(OtherComponent(*fun)(ReplacedFunArgs...), ReplacedFunArgs... args) -> auto {
using IntCollector = int[];
(void)(IntCollector{0, checkAcceptableComponentInstallArg<ReplacedFunArgs>()...}); |
I gave that patch a try, but it doesn't seem to be enough. |
Hello,
As I understood from closed issues is that VS 2015 Update 3 is supported with fruit, isn't it?
I was just download repository, generated debug 32 project and pressed build~
After this I received quite a lot of issues related to one file injector.defn.h:
Error C2061 syntax error: identifier 'RemoveAnnotations<`template-type-parameter-1'>' fixed_size_vector-exec fruit-master\include\fruit\impl\injector.defn.h 99
Could you help me to understand what I am doing wrong?
Thank you for your time!
The text was updated successfully, but these errors were encountered: