Login  Register

Re: Swig Wrapers for DeltaVolQuote

Posted by Luigi Ballabio on Dec 22, 2015; 4:02pm
URL: http://quantlib.414.s1.nabble.com/Swig-Wrapers-for-DeltaVolQuote-tp17124p17204.html

Right. I hadn't tried Java. Adding https://github.com/lballabio/QuantLib-SWIG/commit/5465db3bf34bcb0600125322495c2d4c528cffc2 should  do the trick.

Luigi


On Tue, Dec 22, 2015 at 5:04 PM DPaulino <[hidden email]> wrote:
Sorry Luigi,

with these lines I seem to get the error:

Severity        Code    Description     Project File    Line
Error   C2512   'QuantLib::DeltaVolQuote::DeltaVolQuote': no appropriate default
constructor available   NQuantLibc
C:\QuantLib-SWIG\CSharp\cpp\quantlib_wrap.cpp   80873

When I go to the refere line what I see is:

SWIGEXPORT void * SWIGSTDCALL CSharp_new__DeltaVolQuote() {
  void * jresult ;
  DeltaVolQuote *result = 0 ;

  {
    try {
      result = (DeltaVolQuote *)new DeltaVolQuote();
    } catch (std::out_of_range& e) {
      {
        SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what()));
return 0;
      };
    } catch (std::exception& e) {
      {
        SWIG_CSharpException(SWIG_RuntimeError,
const_cast<char*>(e.what())); return 0;
      };
    } catch (...) {
      {
        SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
      };
    }
  }
  jresult = (void *)result;
  return jresult;
}

Any ideas?



--
View this message in context: http://quantlib.10058.n7.nabble.com/Swig-Wrapers-for-DeltaVolQuote-tp17124p17203.html
Sent from the quantlib-users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users
--

<http://leanpub.com/implementingquantlib>
<http://implementingquantlib.com>
<http://twitter.com/lballabio>


------------------------------------------------------------------------------

_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users