Boost logo

Boost Users :

Subject: [Boost-users] Crash in VS2013, bug in compiler, boost or my code ? (flyweight, variant and initializer list)
From: Olivier Tristan (o.tristan_at_[hidden])
Date: 2013-12-13 12:16:09

Hello Boost users,

Using the following sample code I have some crash in VS2013 but it works
fine in LLVM on OSX
Is this is a mistake on my side or an issue elsewhere ?

#include <string>
#include <cstdint>
#include <vector>
#include <boost/flyweight/flyweight.hpp>
#include <boost/flyweight/no_tracking.hpp>
#include <boost/flyweight/static_holder.hpp>
#include <boost/flyweight/set_factory.hpp>
#include <boost/flyweight/simple_locking.hpp>
#include <boost/variant.hpp>

typedef boost::flyweights::flyweight<
> string_flyweight;

typedef boost::variant<
> Variant;

int main(void)
   std::vector<Variant> v = { 1., true, string_flyweight("toto") };
   return 0;



Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at