Re: [Flightgear-devel] [Gitorious] Activity: tomprogs pushed 1 commits to nextn...

2012-11-13 Thread Frederic Bouvier
Simgear doesn't compile on Windows :

17D:\FGFSHudsonCMake\SimGear\SimGear\simgear\nasal\cppbind\cppbind_test.cxx(76):
 error C2440: 'specialization' : cannot convert from 'naRef (__thiscall Base::* 
)(naContext,int,naRef *)' to 'naRef (__cdecl *const )(T ,naContext,int,naRef 
*)'
17  with
17  [
17  T=Base
17  ]
17  There is no context in which this conversion is possible
17D:\FGFSHudsonCMake\SimGear\SimGear\simgear\nasal\cppbind\cppbind_test.cxx(76):
 error C2973: 'nasal::GhostT::method' : invalid template argument 'naRef 
(__thiscall Base::* )(naContext,int,naRef *)'
17  with
17  [
17  T=Base
17  ]
17  
d:\fgfshudsoncmake\simgear\simgear\simgear\nasal\cppbind\Ghost.hxx(446) : see 
declaration of 'nasal::GhostT::method'
17  with
17  [
17  T=Base
17  ]
17D:\FGFSHudsonCMake\SimGear\SimGear\simgear\nasal\cppbind\cppbind_test.cxx(76):
 error C2668: 'nasal::GhostT::method' : ambiguous call to overloaded function
17  with
17  [
17  T=Base
17  ]
17  
d:\fgfshudsoncmake\simgear\simgear\simgear\nasal\cppbind\Ghost.hxx(446): could 
be 'nasal::GhostT nasal::GhostT::methodnaRef 
Base::member(naContext,int,naRef *)(const std::string )'
17  with
17  [
17  T=Base
17  ]
17  
d:\fgfshudsoncmake\simgear\simgear\simgear\nasal\cppbind\Ghost.hxx(425): or 
  'nasal::GhostT nasal::GhostT::methodnaRef 
Base::member(naContext,int,naRef *)(const std::string )'
17  with
17  [
17  T=Base
17  ]
17  while trying to match the argument list '(const char [7])'
17
17Build FAILED.

See 
http://flightgear.simpits.org:8080/job/SimGear-Win-CMake/lastFailedBuild/console

Regards,
-Fred

- Mail original -
 De: Gitorious no-re...@gitorious.org
 À: fredfgf...@free.fr
 Envoyé: Lundi 12 Novembre 2012 23:28:10
 Objet: [Gitorious] Activity: tomprogs pushed 1 commits to nextn...
 
 
 
 Hello fredb,
 
 One of your favorites has a new activity:
 
 tomprogs pushed 1 commits to next
 next changed from 55fbe68 to 04685a8
 
 View the commit log at https://gitorious.org/fg/simgear/commits
 
 View the diff online:
 https://gitorious.org/fg/simgear/commit/55fbe68e6253d5cacba2bec840a49f1b7b026362/diffs/04685a81794f8332373c57450920fb6f706d8d07
 
 Diff:
 
 commit 04685a81794f8332373c57450920fb6f706d8d07
 Author: Thomas Geymayer tom...@gmail.com
 Date:   Mon Nov 12 23:28:00 2012 +0100
 
 C++/Nasal bindings: allow registering free function as member
 
 diff --git a/simgear/nasal/cppbind/Ghost.hxx
...

--
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] [Gitorious] Activity: tomprogs pushed 1 commits to nextn...

2012-11-13 Thread Thomas Geymayer
Am 2012-11-13 10:54, schrieb Frederic Bouvier:
 Simgear doesn't compile on Windows :

Seems like this is a VS bug. It is unable to distinguish between
pointers to free functions and member functions - even though they have
different signatures - if using for template specialization.

I've pushed a workaround which delegates the specialization to the
programmer by using different function names :)

Tom

-- 
Thomas Geymayer  www.tomprogs.at / C-Forum und Tutorial: www.proggen.org

  Student of Computer Science @ Graz University of Technology
--- Austria 

--
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel