Skip to content

Commit 59be0c4

Browse files
committed
temp1
1 parent 9e7adcb commit 59be0c4

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

test/value_from.cpp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -260,8 +260,9 @@ tag_invoke(
260260

261261
struct id
262262
{
263-
static constexpr auto& id1 = "Id#1";
264-
static constexpr auto& id2 = "Id#2";
263+
// msvc 14.0 doesn't like these being references to char arrays
264+
static constexpr char const* id1 = "Id#1";
265+
static constexpr char const* id2 = "Id#2";
265266

266267
std::size_t n;
267268
};
@@ -299,8 +300,8 @@ struct id_string_repr
299300
{
300301
switch(n)
301302
{
302-
case 1: return boost::json::string_view(id::id1);
303-
case 2: return boost::json::string_view(id::id2);
303+
case 1: return boost::json::string_view(id::id1, 4);
304+
case 2: return boost::json::string_view(id::id2, 4);
304305
default: return boost::json::string_view("unknown");
305306
}
306307
}

0 commit comments

Comments
 (0)