Skip to content

Basic Example doesn't compile on MSVC '17 #206

@collinschupman

Description

@collinschupman

I'm trying to compile a basic example, very close to what's presented in the examples folder on Windows w/ MSVC '17:

struct model
{
	int value = 0;
};

struct increment_action {};
struct decrement_action {};
struct reset_action { 
	int new_value = 0;
};

using action = std::variant<increment_action, decrement_action, reset_action>;

auto store = lager::make_store<action >(
       model{}, lager::with_manual_event_loop{});

This basic store init fails with error:

Severity	Code	Description	Project	File	Line	Suppression State	Details
Error	C3200	'lager::detail::reader_node<T>': invalid template argument for template parameter 'Base', expected a class template	redacted	redacted\lib\lager\store.hpp	40		

I'm not entirely sure what the error is but store_node_base seems to have issue deducing the types it needs correctly.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions