These are chat archives for symengine/symengine

Apr 2018
Gary Tan
Apr 18 2018 05:08
I didn't expect this to work, but it works amazingly.
#include <symengine/add.h>
#include <symengine/visitor.h>
#include <vector>

using SymEngine::symbol;
typedef SymEngine::RCP<const SymEngine::Symbol> SymbolType;

typedef std::vector<SymbolType> ListSymbols;
typedef SymEngine::set_basic SetBasics;

int main() {
  ListSymbols symlist({symbol("x"), symbol("y")});
  SetBasics basicset(symlist.begin(), symlist.end());
  return 0;
Maybe no surprise to developers. :smile:
simple upcasting I assume