Exception specification for template friend functions

Hello, everybody!
I have the following piece of code:
template <class T> inline bool f(T& _refT) throw();
class A {
template <class T> friend inline bool f(T& _refT) throw(); // line 4
int main()
A l_A;
int l_k = 0;
bool l_b = f(l_k);
template <class T> inline bool f(T& _refT) throw()
return true;
; it would compile fine with gcc 2.95.2, but WS6U1 C++ would say
"line 4: Error: The prior declaration for f<T>(A::T&) has an exception specification." Removing the exception specification, everything compiles fine with CC as well. I couldn't find any contradiction of given code with Draft December 1996 of C++ Standard. Could anyone explain my mistake (if any)? Thanks in advance! Artem.

#include <iostream>
using namespace std;
class MYINT
public:
typedef int node;
node _a;
MYINT(node a): _a(a) {}
friend ostream & operator<< (ostream & o, MYINT & m);
ostream & operator<< (ostream & o, MYINT & m)
o << m._a;
return o;
template <class A>
class C
typedef typename A::node node;
public:
A _a;
C(A & a) : _a(a) {}
~C() {}
template <class B, class P>
node f1(A a, B b, P c) { cout << "\n Print 1. _a: " << _a << ", " << a << ", " << b << ", " << c << endl; return a._a; }
template <class B, class P>
typename A::node f2(A a, B b, P c) { cout << "\n Print 2. _a: " << _a << ", " << a << ", " << b << ", " << c << endl; return a._a; }
template <class B, class P>
node f3(A a, B b, P c);
template <class B, class P>
typename A::node f4(A a, B b, P c);
template <class A>
template <class B, class P>
inline typename C<A>::node C<A>::f3(A a, B b, P c) { cout << "\n Print 3. _a: " << _a << ", " << a << ", " << b << ", " << c << endl; return a._a; }
template <class A>
template <class B, class P>
inline typename A::node C<A>::f4(A a, B b, P c) { cout << "\n Print 4. _a: " << _a << ", " << a << ", " << b << ", " << c << endl; return a._a; }
int main()
MYINT i(1);
C<MYINT> c(i);
int j=2;
char k='c';
double d = 5;
c.f1(j, k, d);
c.f2(j, k, d);
c.f4(j, k, d);
c.f3(j, k, d);
return 0;
Edited by: 833843 on Feb 7, 2011 1:42 AM

Similar Messages

  • Functional Specifications for LSMW required urgently

    Hi Friends,
    Can you please provide me with the functional specifications for lsmw. I need a template document which i should be able to use as Func Specs for different lsmw objects.
    Kindly forward the same to [email protected]
    Thanks & Regards,
    Vijaya

    see the link...u will get the documents for LSMW
    https://websmp110.sap-ag.de/~form/sapnet?_SHORTKEY=01100035870000615616

  • Functional Specification for Document Status

    Hi friends,
    Can anybody provide FS (Functional Specification) for the folowing scenarioes
    PART-A
    1.No. of  Enquiries received, Quotation not sent.
    2.Avg. age of Enquiry
    3.No. of  Quotation sent. Order(Contract) not received.
    4.Value  of  Quotation sent. Order(Contract)  not received.
    PART-B
    1.No. of  Delivery made, PGI not made
    2.VALUE of  Delivery made, PGI not made
    3.No. of  PGI made, PROFORMA INVOICE not made
    4.VALUE of  PGI made, PROFORMA INVOICE  not made
    5.No. of  Proforma Invoice made, EXCISE INVOICE not made
    6.VALUE of  Proforma Invoice made, EXCISE INVOICE  not made
    7.No. of  EXCISE INVOICE  made, COMMERCIAL. INVOICE not made
    8.VALUE of  EXCISE INVOICE  made, COMMERCIAL. INVOICE  not made
    "Thanks in advance"
    Reagrds,
    Srikky

    Hi,
    The output type available for Quotation rejection is ABSA and the programme name is SAPFM06P.Form routine ENTRY_ABSA.The form Medruck need to be changed by your abaper as per the text you need to incorporate.
    Dhruba

  • Please update the functional specifications for Vendor Balance Report

    Dear All,
    Please update the functional specifications for Vendor Balance Report with
    proper descriptions.
    Please include
    1. How your selection screen should look like..
    2. Output format ( in an excel sheet)
    3. Logic for every field in the output format (viz. .. how do link the
    vendors from the selection screen to the BKPf and BSEG tables, how do you
    find open and closed items in BSEG , etc.)
    Please avoid statements like 'The total value of all the break-up should
    tally with the balance as shown in FBL1N for a given vendor for the given
    day.'
    You need to give the logic for the FBL1N, in that case.
    Regards
    Rama Mohan

    Hello again,
    Regarding having them update the specs, one can dream. Dreams are free. LOL. Hopefully the memory makers will update their specs as more makers start supporting a large memory configuration.
    The 4GB sticks I am using are http://shop.kingston.com/partsinfo.asp?ktcpartno=KTL-TP667/4G
    I did not do an extended test of the sticks in my MBP. Their home is in the ThinkPad I have because it is running Windows Server 2008 with Hyper-V.
    As you can see from the link above, these little suckers are pricey. But consider the price of 2GB SoDIMMs were $950 when they entered the market a couple of years ago. The price will drop.
    I asked the Kingston rep that sent these to me if online sites like newegg.com would have them soon. She indicated no, but the corporate buying sites like CDW and Zone would. So check around. They just started shipped a couple of weeks ago so be patient.
    If you have any other questions, please stop by http://blogs.technet.com/keithcombs/archive/2008/07/05/testing-my-apple-macbook- pro-with-8gb-of-ram.aspx and ask there. I'll see them much more quickly.
    Cheers,
    Keith Combs
    Microsoft

  • Functional specifications for AP, AR and GL

    Hi SAP Gurus,
      I am new consultant. Can anyone help me with the functional specifications for GL, AP, and AR.
      Please mail me the specifications at [email protected] Thanks in advance
    Ramesh

    Hi
    pl find this link which might be useful
    http://www.mojofat.com/tutorial/
    Assign points
    Zia

  • I would like to buy an ipad for a gift for a friend that lives in Santiago,Dominican Republic.  What do I need to do to make the ipad function efficiently and properly in Santiago,Dominican Republic?

    I would like to buy an ipad for a friend of mine that lives in Santiago,Dominican Republic.  How and what do I need to do as far as set up of the ipad to make sure that it functions efficiently and properly in Santiago,Dominican Republic?  The availability of wi-fi is not very good, so should I buy an ipad model that has wi-fi and cellular capability?  I am quite new to all this technology so I would appreciate it very much if someone can explain step by by step and in simple terms how the ipad needs to be set up to work in this country.

    The Smart Cover only protects the front screen. You'll get scratches on the back plus it provides no protection for a small drop.
    I added a screen protector as it was cheap insurance protection.
    For my iPad 2, I bought an Adesso case/keyboard model WKB-2000CD http://www.adesso.com/en/component/content/article/49-coming-soon/455-wkb-2000cd .html Works great & looks good. The keyboard is easier to use than Apple's on-screen keyboard. Do a Google search using the model number to get the best price. About the same price as Apple's covers & it covers the whole iPad. Although the new iPad  is slightly thicker, it should fit this case.
     Cheers, Tom

  • Functional Specification for Travel Request Workflow

    Dear All,
    EHP6 and 7.3
    The standard travel request workflow( WS20000050) is not supporting for my business process.
    So we are developing custom Workflow.
    I want write Functional specification.
    Please provide some information to write functional specification for Travel request.
    Advance thanks.............
    Regards
    Somu

    Are you kidding ?
    Do you want us to do your work ? ^^

  • Functional report specifications for AUC reporting

    Hi All,
    Does anyone have a sample document about functional report specifications for
    AUC reporting?
    Can anyone e-mail a sample report to [email protected]
    Thank you,
    Best Regards,
    John Mc

    Hi,
    Looking at the requirement  it seems like you have 2 level of authorization check i.e. Check first user is authorized for cost center. And if yes then look for teh combination of Func area related to that cost center, for that user.
    I think keeping the second check for func. area within loop of cost center (for each cost center) should work.
    Thank-You.
    Regards,
    Vinod

  • GTS Functional Specifications for new enhancements

    Hello Experts,
    can you please provide a example for functional specifications for new enhancements in GTS. or a link

    Hi
    pl find this link which might be useful
    http://www.mojofat.com/tutorial/
    Assign points
    Zia

  • If your Team Lead given Functional Specifications for a BDC program and you

    If your Team Lead given Functional Specifications for a BDC program and you need to decide wether to write a Method Call Transaction or a Session.
    How you will decide ?

    Hi Krishna,
    See this you will got some ideas.
    Diff b/w call transaction and session method is
    Call transaction.
    1) asynchronous processing
    2) can transfer small amount of data
    3) processing is faster.
    4) errors need to be handled explicitly
    5) data is updated automatically
    Session method.
    1) synchronous processing.
    2) can tranfer large amount of data.
    3) processing is slower.
    4) error log is created
    5) data is not updated until session is processed.
    Thanks,
    Reward If Helpful.

  • How can I change the margin settings in the pages inspector to make them more specific for label templates. I need margins that can be set to hundreths of a centimetre not just tenths.

    How can I change the margin settings in the pages inspector to make them more specific for label templates. I need margins that can be set to hundreths of a centimetre not just tenths.

    I doubt you need hundreths as you would not even be able to measure that and the printer doesn't hold the paper to those tolerances.
    fruhulda is right. Pages accepts higher measure but rounds it in the measure field.
    If you want absolute accuarcy you need to set your measures to points. Everything else is being recalculated.
    Peter

  • Functional Specification for Acceptance forms

    Hi Guru's,
    Please help with the functional Specification for Acceptance or Regret letters for RFx(RFQ, RFI or RFP)?
    Your assistance will be appreciated,

    Hi,
    The output type available for Quotation rejection is ABSA and the programme name is SAPFM06P.Form routine ENTRY_ABSA.The form Medruck need to be changed by your abaper as per the text you need to incorporate.
    Dhruba

  • How will i prepare functional specification for my support project

    how will i prepare functional specification for my support project....

    Hi,
    [Functional Specifications|Re: functional spec;
    Assign Points if helpful.
    Thanks and Regards,
    Naveen Dasari.

  • Specifications for development

    hi gurus      
    how to give thje specifications for development?

    To speak at macro level that is at projet manager or at senior levels.  The Functional Spec (Specification) which is a comprehensive document is created after the (SRS) Software Requirements Document. It provides more details on selected items originally described in the Software Requirements Template. Elsewhre organizations combine these two documents into a single document.
    The Functional Specification describes the features of the desired functinality.. It describes the product's features as seen by the stake holders,and contains the technical information and the  data needed for the design and developement. 
    The Functional Specification defines what the functionality will be of a particulat area that is to be precise a transaction in SAP terminology.
    The Functional Specification document to create a detailed design document that explains in detail how the software will be designed and developed. 
    The functional specification translates the Software Requirements template into a technical description which
    a) Ensures that the product feature requirements are correctly understood before moving into the next step, that is detchnical developement  process. 
    b) Clearly and unambiguously provides all the information necessary for the technical consultants to develop the objects.
    At the consultant level the functional spects are preapred by functinal consultants on any functionality for the purpose of getting the same functinality designed by the technical pepole as most of the times the functionalities according to the requirements of the clients are not available on ready made basis.
    Let me throw some light on documentation which is prepared before and in a project:
    1) Templates
    2) Heat Analysis -
    3) Fit Gap or Gap Analysis
    4) Business Process Design
    5) Business Process Model
    6) Business Change & Impact
    7) Configuration Design, which is just 5 % of Total SAP- have different names -
    8) Future Impact & Change Assessement
    9) Functional Design (Module Wise)
    10) Risk Assessement
    11) Process Metrics and Many More-- Which has impact on Business and its work flow
    In Details
    Functional specifications (functional specs), in the end, are the blueprint for how you want a particular report and transaction to look and work. It details what the report will do, how a user will interact with it, and what it will look like. By creating a blueprint of the report or transaction first, time and productivity are saved during the development stage because the programmers can program instead of also working out the logic of the user-experience. It will also enable you to manage the expectations of your clients or management, as they will know exactly what to expect.
    A key benefit of writing up a Functional Spec is in streamlining the development process. The developer working from the spec has, ideally, all of their questions answered about the report or transaction and can start building it. And since this is a spec that was approved by the client, they are building nothing less than what the client is expecting. There should be nothing left to guess or interpret when the spec is completed.
    Functional Specification
    A functional specification (or sometimes functional specifications) is a formal document used to describe in detail for software developers a product's intended capabilities, appearance, and interactions with users. The functional specification is a kind of guideline and continuing reference point as the developers write the programming code. (At least one major product development group used a "Write the manual first" approach. Before the product existed, they wrote the user's guide for a word processing system, then declared that the user's guide was the functional specification. The developers were challenged to create a product that matched what the user's guide described.) Typically, the functional specification for an application program with a series of interactive windows and dialogs with a user would show the visual appearance of the user interface and describe each of the possible user input actions and the program response actions. A functional specification may also contain formal descriptions of user tasks, dependencies on other products, and usability criteria. Many companies have a guide for developers that describes what topics any product's functional specification should contain.
    For a sense of where the functional specification fits into the development process, here are a typical series of steps in developing a software product:
    Requirements:
    This is a formal statement of what the product planners informed by their knowledge of the marketplace and specific input from existing or potential customers believe is needed for a new product or a new version of an existing product. Requirements are usually expressed in terms of narrative statements and in a relatively general way.
    Objectives: Objectives are written by product designers in response to the Requirements. They describe in a more specific way what the product will look like. Objectives may describe architectures, protocols, and standards to which the product will conform. Measurable objectives are those that set some criteria by which the end product can be judged. Measurability can be in terms of some index of customer satisfaction or in terms of capabilities and task times. Objectives must recognize time and resource constraints. The development schedule is often part or a corollary of the Objectives.
    Functional specification.: The functional specification (usually functional spec or just spec for short) is the formal response to the objectives. It describes all external user and programming interfaces that the product must support.
    Design change requests: Throughout the development process, as the need for change to the functional specification is recognized, a formal change is described in a design change request.
    Logic Specification:
    The structure of the programming (for example, major groups of code modules that support a similar function), individual code modules and their relationships, and the data parameters that they pass to each other may be described in a formal document called a logic specification. The logic specification describes internal interfaces and is for use only by the developers, testers, and, later, to some extent, the programmers that service the product and provide code fixes to the field.
    User documentation:
    In general, all of the preceding documents (except the logic specification) are used as source material for the technical manuals and online information (such as help pages) that are prepared for the product's users.
    Test plan: Most development groups have a formal test plan that describes test cases that will exercise the programming that is written. Testing is done at the module (or unit) level, at the component level, and at the system level in context with other products. This can be thought of as alpha testing. The plan may also allow for beta test. Some companies provide an early version of the product to a selected group of customers for testing in a "real world" situation.
    The Final Product:
    Ideally, the final product is a complete implementation of the functional specification and design change requests, some of which may result from formal testing and beta testing. The cycle is then repeated for the next version of the product, beginning with a new Requirements statement, which ideally uses feedback from customers about the current product to determine what customers need or want next.
    Most software makers adhere to a formal development process similar to the one described above. The hardware development process is similar but includes some additional considerations for the outsourcing of parts and verification of the manufacturing process itself.

  • The niFPui.mxx plug-in caused an exception in the CmxAggregateItemUI::InvokeCommand function in the NIMax process. When saving *.iak file in MAX4.6

    The niFPui.mxx plug-in caused an exception in the CmxAggregateItemUI::InvokeCommand function in the NIMax process. When saving *.iak file in MAX4.6
    Hi There,
    The subject header just about says it all. This is the first action I took with MAX - it is a fresh install. The file I wanted to save was still written and the FP seems to be working ok. However, I need to know what happened.
    I can't post the whole log file due to the amount of characters allowed on this post. I can cut and paste sections if there is a specific part of the file you need. Below is the first section and last section.
     Context where exception was caught:
    Func:
    CmxAggregateItemUI::InvokeCommand Args: plugin=niFPui.mxx Item=0107EAB1
    cmdID.cmdId={4A36174B-EC0C-4D73-A23D-F15D164542DE} cmdID.index=0
    Application   : C:\Program Files\National Instruments\MAX\NIMax.exe
    User Name     : slaney
    OS Version    : 5.1.2600 (Service Pack 3)
    Exception Code: C000001E
    Exception Addr: 457BC448
    Return Address: 457BC448
    Function Name : nNIFPServer::tFpLinearScaleRange::`vftable'
    Module Name   : FieldPoint71
    Parameters    : F001008E 7800FDDD C5100DFC EC0107EA
    Source File   : (not available)
    Return Address: 481000C3
    Function Name : (not available)
    Module Name   : (not available)
    Parameters    : 00000000 00000000 00000000 00000000
    Source File   : (not available) 

    Hi,
    I did a research on your error message and it seems this problem was introduced with MAX 4.6. This version switched to a new error reporting mechanism and reports even errors that are which are not critical to your task.
    These errors typically show up as "unexpected" and if your error falls into this category have a look to this KB for further assistance.
    If it doesn't fall into this category, your could try to go back to the MAX 4.5 or 4.4.. Of course you would need to reinstall some components and might not be able to use newer drivers at all.
    Let me know.
    DirkW

Maybe you are looking for

  • Error while processing ADOBE interactive form

    Hi, I get following error when I try to submit an ADOBE interactive form. FormPostprocessor.ERROR_NO_DEFAULT_USER_FOR_ROLE com.sap.caf.eu.gp.base.exception.EngineException: FormPostprocessor.ERROR_NO_DEFAULT_USER_FOR_ROLE at com.sap.caf.eu.gp.model.i

  • To run and work on AIX server installed ODI

    Hi all, As I was working on ODI till the date in window o/s of my desktop. But now I have to work on AIX server I need to know * Is there any difference to work on ODI while I am using AIX plz provide me necessary information.. * Will working methodo

  • A question in threading

    Hi everybody, my problem is as follow, I have two classes myClass and myGUI myClass code is public class MyClass      public void start()           while (true)                // do some stuff      public void stop()           System.out.println("Hel

  • Photos have disappeared from camera roll

    my mom got home after a trip and tried to sync her iphone because of a problem she had when my sister deleted some contacts from her phone and icloud deleted from my mom's iphone automaticly during its sync apperently the laptop shut down and when sh

  • SAPOSCOL File system monitor does not show all drives (OS06 / ST06 / OS07)

    Hi everyone, Iu2019m facing an issue with certain drives not being monitored in saposcol / CCMS Filesystem monitor after ECC6 upgrade. I can only see 3 drives. The following errors are showing up in saposcol log. 01:05:15 26.01.2010   LOG: Allocate I