STL set header

Could someone help me with the following declaration found in patch 107312-16 in <set>
typedef TYPENAME_rep_type::const_iterator iterator;
typedef TYPENAME _rep_type::const_iterator const_iterator;
Which typedefs set's iterator as a const_iterator. This thing imposes compiler's errors whenever one assigns a value to an iterator.
Change to the typedef of iterator to the following (as in normal STL headers):
typedef TYPENAME_rep_type::iterator iterator;
clears compiler errors, but I am not sure whether this imposes unexpeceted behaviour in other templates or not.
Concerning the problem description:
4317049 Set missing implicit conversion between const_iterator and iterator
it seems that there were some problems regarding this issue.
Since STL set has both iterator and const_iterator, could someone tell me whether it is a bug or a feature, and the way to resolve this.
Although it looks like a cut and paste error, please be so kind to explain it in more detail.
Regards,
SrkiH

I can't speak to whether this is a bug or a feature from Sun's point of view. It is quite possibly by design (see below).
It is not portable to assume that you can do in-place modification of elements in a set. Since you could potentially corrupt the set by changing properties of the contained object which affect the sort order, some implementors have chosen not to let you access the elements as non-const. Scott Meyers covers this issue well in his book Effective STL, Item 22. I'm sure you can also find lots of relevant information on comp.lang.c++.moderated or comp.std.c++; try google groups.
Josh Walker

Similar Messages

  • How To set Header and Footer in MIDlet screen

    Hi Friends,
    How can i set header and footer in my screens .
    My need is that in header part ,my company's name shuld be display and in footer section "any thing".
    How can i achieve this things plz advice me.
    karan

    Hi Supareno,
    Can u tell me in details with small code, If it's
    possible for you .
    regards
    karandefine an header (coordinate 0,0)
    optional {
    a CustomItem? (coordinate 0, 0+header.getHeight() )
    another CustomItem ? (coordinate 0, CustomItem.getY() + CustomItem.getHeight() )
    etc...
    define footer (coordinate 0, getHeight() - footer.getHeight() )
    Message was edited by:
    supareno

  • Unable to set header status - VBUK-UVALL in USEREXIT_SAVE_DOCUMENT_PREPARE

    Hi,
    I need some advice in setting header status in table VBUK field UVALL in user exit MV45AFZZ - USEREXIT_SAVE_DOCUMENT_PREPARE. I am unable to set this field in this userexit.
    I create an enhancement implementation in user exit USEREXIT_SAVE_DOCUMENT_PREPARE in MV45AFZZ. In my enhancement code, I have a perform statement which is in a Z include program. In my perform statement, I check a condition, if the line item text is not populated, then  I would like to set XVBUK-UVALS to B. In the code, I set the fields as follow :
    XVBUK-UVALS = 'B'
    XVBUK-UPDKZ = 'U'.
    After the sales order is saved, when I checked in table VBUK-UVALS, the field is not updated.
    Could anyone please provide me with some advice on how I could set the status in VBUK-UVALS in the user exit ? Should I be using another user exit ?
    Any advice would be much appreciated.
    Thanks,
    Virginia

    Hi,
    Similiar to the statements given by you add following statements.
    VBUK-UVALS = 'B'
    VBUK-UPDKZ = 'U'.
    Regards
    Vinod

  • Oracle Service Bus 10.3 - split join how to set header for invoked service

    In Oracle Service Bus 10.3 how can I set the header for the service being invoked. We make parallel calls to 2 different business services. One of the invoked service requires header to be set and I am unable to figure out how it can be done. Below are snippet of the code and WSDL.
    --- Login Operation start ---
    <operation name="login">
    <wsdlsoap:operation soapAction="blah"/>
    <input name="loginRequest">
    <wsdlsoap:body use="literal"/>
    <wsdlsoap:header message="passport:loginHeader" part="hppwsHeaderElement" use="literal"/>
    </input>
    <output name="loginResponse">
    <wsdlsoap:body use="literal"/>
    </output>
    <fault name="genericFaultException">
    <wsdlsoap:fault name="genericFaultException" use="literal"/>
    </fault>
    </operation>
    --- Login Operation end ---
    --- hppwsHeader Element --
    <complexType name="hppwsHeaderElement">
    <sequence>
    <element maxOccurs="1" minOccurs="0" name="version" type="tns1:version"/>
    <element maxOccurs="1" minOccurs="0" name="tx-id" type="tns1:tx-id"/>
    <element maxOccurs="1" minOccurs="1" name="systemLangCode" type="xsd:string"/>
    </sequence>
    </complexType>
    --- LoginRequest Element ---
    <xs:element name="loginRequestElement" type="s0:loginRequestType"/>
    <xs:complexType name="loginRequestType">
    <xs:sequence>
    <xs:element name="userId" minOccurs="1" maxOccurs="1" type="xs:string"/>
    <xs:element name="password" minOccurs="1" maxOccurs="1" type="xs:string"/>
    </xs:sequence>
    </xs:complexType>
    --- LoginResponse Element ---
    <xs:element name="loginResponseElement" type="s0:loginResultType"/>
    <xs:complexType name="loginResultType">
    <xs:sequence>
    <xs:element name="sessionToken" minOccurs="1" maxOccurs="1" type="xs:string"/>
    </xs:sequence>
    </xs:complexType>
    In Oracle Workshop for WebLogic when I create a split-join .flow file while adding the invoke service call to login operation I am prompted to create the loginRequest and loginResponse variables. I can assign the appropriate expression to loginRequest.loginRequestElement prior to making the invoke call but then the backend business call fails because "systemLangCode" is not defined and set. Actual fault is
    <ns1:genericFault xmlns:ns1="http://hppcbl.globalops.company.com/webservice">
    <systemLangCode>en</systemLangCode>
    <fault>
    <ruleNumber>589</ruleNumber>
    <fieldName>systemLangCode</fieldName>
    <code>field.empty</code>
    <desc>System language code is required.</desc>
    <ftype>2</ftype>
    </fault>
    </ns1:genericFault>
    I would really appreciate if someone could guide me on how to resolve this
    Regards,
    -Nilay

    There is this $header variable which you should populate before calling the BS. What is the type of BS? If it is WSDL BS , Any Soap BS then above solution will work. I assume that yours is WSDL based BS and setting $header should resolve this issue.
    AnyXML and Messaging type BS services requires that you create proper pay load (setting $header will not work).
    There is also other actions Set Transport Headers {outbound request/inbound response} which can be used to set transport related headers but not soap headers.
    Manoj

  • Setting Header in response doesn't work !!

    Hi everyone,
    I want to set header in response to a request but it doesn't work :
    response.addHeader("WSC_RESPONSE", "STRUTS_ERROR");
    System.out.println(response.containsHeader("WSC_RESPONSE"));
    response.setHeader("WSC_RESPONSE", "STRUTS_ERROR");
    System.out.println(response.containsHeader("WSC_RESPONSE"));
    this print me :
    false
    false
    thanks in advance for help

    I can't do this because I'm putting those lines in an action who was caled by another action wich fill the response in.
    private ActionForward doDispatchMethod(ActionMapping mapping,
                                               ActionForm form,
                                               HttpServletRequest request,
                                               HttpServletResponse response,
                                               String methodName)
                                        throws IOException
                Method method = getMethod(methodName);
                Object[] args = { mapping, form, request, response };
                fwd = (ActionForward) method.invoke(this, args);
            if (request.getAttribute(ERROR_KEY)!=null)
                 response.reset();
                 response.addHeader("WSC_RESPONSE", "STRUTS_ERROR");
                 System.out.println(response.containsHeader("WSC_RESPONSE"));
                 response.setHeader("WSC_RESPONSE", "STRUTS_ERROR");
                 System.out.println(response.containsHeader("WSC_RESPONSE"));
            else
                 response.reset();
                 response.addHeader("WSC_RESPONSE", "OK");
                 System.out.println(response.containsHeader("WSC_RESPONSE"));
                 response.setHeader("WSC_RESPONSE", "OK");
                 System.out.println(response.containsHeader("WSC_RESPONSE"));
            return fwd;
        }

  • Problem in setting header for a panelgrid in backing bean

    Hi , this is urgent... pls...
    Actually my problem is to set header for a panelgrid. I am generating panelgrid component in the backing bean itself , there i need to set header for that panelgrid.
    Here is some sample code which i have written pls let me know whether any problem in this code or let me know whether there is any method possible other than this.
    Code:
    Application application=FacesContext.getCurrentInstance().getApplication();
    keyFeaturesGrid = (HtmlPanelGrid) application.createComponent (HtmlPanelGrid.COMPONENT_TYPE);
    keyFeaturesGrid.setColumns(4);
    keyFeaturesGrid.setColumnClasses("subColumn");     
    FacetTag facetTag=new FacetTag();
    facetTag.setName("header");
    HtmlOutputText facetText=new HtmlOutputText();
    facetText.setValue("Key Features");
    facetTag.setValue("value",facetText);
    keyFeaturesGrid.getChildren().add(facetTag);
    i am calling this method in constructor.. if i place that facetTag code part in my method... i am getting an error while instantiating the constructor...
    waiting for solution...
    Thanks in advance...

    Hai...
    I got it...
    Here i am posting the solution which i got...
    no need to think this much ... it is very simple... let me share the solution here...
    Instead of creating FacetTag object u can do this like this...
    HrmlPanelGrid panelGrid=new HtmlPanelGrid();
    HtmlOutputText headerText=new HtmlOutputText();
    headerText.setValue("Header For The Grid");
    panelGrid.getFacets().put("header",headerText);
    u r always welcome to send any suggestions...
    and also one doubt... how to use JSF core tag verbatim in backing bean

  • STL map header file problem

    After having applied patch 107311-13, the compiler is reporting an error when I include the STL map header file. It is saying that the insert function is declared twice.
    When I compare the STL map header file with the version before the patch, I can see an additional declaration of the insert function which is identical to a previous declaration. To be able to generate my application, I had to replace the header file by the old version I kept aside.
    Does anyone have an idea?
    I am using compiler SC5.0 on a SunOS 5.7.
    Thanks.

    Hi All,
    I am facing the same issue: unable to save the mapconfig. The mapconfig dropdown list is empty after defining he mapviewer url and the geocoder url.
    Is this a bug? Any suggestions.
    - Tutorial: http://docs.oracle.com/cd/E18941_01/tutorials/jdtut_11r2_58/jdtut_11r2_58_3.html
    - JDev: Studio Edition Version 11.1.2.1.0
    Build JDEVADF_11.1.2.1.0_GENERIC_110907.2314.6081
    Thanks
    Mike L

  • Setting header variable in policy

    Hi
    I have been trying to set header variable "oimuid" in policy on Authorization success. "oimuid" is attribute of custom object class "Company". We have configured "Company" object class as person object class in Identity and Access Manager.
    I get the following message when I try to save the action.
    "oimuid is not a valid Identity Attribute. This attribute is not defined in the directory schema."
    I checked into Identity system and figured out that "Company" object class has "oimuid" attribute. I also looked into Policy directory server and it has "Company" object class with "oimuid" attribute.
    Hs anyone faced the issue before?
    Any help would be appreciated.
    Thanks.
    Kiran Thakkar

    Hi Kiran,
    Good to know you've got past the problem! I was about to suggest looking at debug logs to see if it gave more clues. I am curious about a couple of things though -
    1) Was it only attributes from "Company" or also those from "inetorgperson" that were giving this problem?
    2) If I understood your solution correctly, you had to create the "AccessManager_setup_user_profile" and mark it used by "Access Managers", when earlier you had deleted this profile and created another with a different name and possibly used by "All Oracle Access Manager Components". If I got that part right, have you tried eliminating one reason or the other (i.e. profile with a different name but used by "Access Managers" or profile with the same name but used by "All Oracle Access Manager Components")? In any case, it sounds like a bug Oracle should fix.
    Thanks,
    -Vinod

  • CatalogDeployer issue - "Cannot set header. Response already committed"

    Whenever we are trying to deploy any package we immediately get a 'deployment successful' message though the package is not deployed and remnains in the received for deployment queue. This is only found in the log 00000048 SRTServletRes W WARNING: Cannot set header. Response already committed.
    Very much appreciated if you could provide the resolution.
    We have a production service release tomorrow so we need assistance on this one asap. Thanks a lot

    You can not write to the response after you have forwarded the request to another servlet/JSP.

  • SAP function to delete shopping cart (set header status I1040)?

    Does anyone know of a SAP function which can delete a shopping cart (set header status I1040)?
    We're running the EBP extended classic scenario with SRM 4.0 and SRM_SERVER 5.00.
    Thanks,
    Brad

    I don't know about the OP's reasons, but I've been looking for a similar solution as well. In my case our users sometimes create shopping carts under e.g. the wrong budget code, and the approvers don't always catch this, resulting in an approved SC that we can't change or delete but equally can't use.
    I'll check out those fcns, thanks for that. From your question it sounds like there's some reason why this shouldn't be done though? Would this be seen as a bad practice? How would you recommend dealing with the above situation?
    Thanks, John.

  • When I try to access iTunes or safari, I get the following message:The procedure entry point QTCF_CFHTTP message set header field value could not be located in the dynamic link library QTCF.dll  I uninstalled and reinstalled.same result HELP!

    When I try to access iTunes or safari, I get the following message:The procedure entry point QTCF_CFHTTP message set header field value could not be located in the dynamic link library QTCF.dll  I uninstalled and reinstalled.same result HELP!

    Taken at face value, you're having trouble with a QuickTime program file there.
    Let's try something relatively simple first. Restart the PC. Now head into your Uninstall a program control panel, select "QuickTime" and then click "Repair".
    Does the repair go through okay? If so, are you able to launch iTunes and/or Safari now?

  • TableView - set header invisible

    Hello,
    I'm trying to set header of java htmlb table invisible. I used:
    <hbj:tableView
      id="timeSheet"
      model="bean.tablemodel"                     
      headerVisible="FALSE"
      footerVisible="FALSE"
      visibleRowCount="<%=bean.getModelRowCount() %>"
      width="">
    .. but header is still visible. Is this some kind of bug?
    Best regards,
    Josef Motl

    Then probably you missed the sharing reference
    check portalaap.xml
        <property name="ServicesReference" value="htmlb"/>
    <property name="tagLib" value="/SERVICE/htmlb/taglib/htmlb.tld"/>
    also see in your jsp
    <%@ taglib uri= "tagLib" prefix="hbj" %>

  • SSRS: Setting Header from Top/Footer from Bottom

    Hello there guys
    We're using RDLC-Files to create some word reports.
    In our previous version, where we used RDL-Files on SQL 2008 R2, the Margin-Properties (Header from Top / Footer from Bottom) didn't get set at all an was always 0.
    This behaviour was reported, but marked by Microsoft as 'By design'. Since I can't post a link, just google for
    "Word export sets margin-top, margin-bottom to 0mm".
    Interesting enought, on our new Version with RDLC, this properties are always set to 1.27cm, but ignore the Margin-Properties of the Report-Page at all.
    Since we'd like to port our reports from the old RDLs to the new RDLCs, it would be the easiest way, if we could kindahow set these two properties.
    But so far I didn't find a possiblity. Is there one, to tell the Word-Renderer what we'd like to set there?
    Thanks in advance
    Matthias Müller

    Hi Matthias,
    Thank you for your question. 
    I am trying to involve someone more familiar with this topic for a further look at this issue. Sometime delay might be expected from the job transferring. Your patience is greatly appreciated. 
    Thank you for your understanding and support.
    Best regards,
    Qiuyun Yu
    Qiuyun Yu
    TechNet Community Support

  • JAX-WS setting header HTTP basic authentication

    Hello
    How can I set HTTP header vars in JAX-WS?
    I found a lot of questions but no answer works.
    This is my code:
    Service service = Service.create(url, portName);
    OnlineSIUIDef hello = service.getPort(OnlineSIUIDef.class);
    Map<String, Object> contextws = ((BindingProvider)service).getRequestContext();
    contextws.put(BindingProvider.USERNAME_PROPERTY, SIUI_USERNAME);
    contextws.put(BindingProvider.PASSWORD_PROPERTY, SIUI_PASSWORD);
    All examples I found on the web are based on such a structure.
    Problem is that first is created a new service, then the header vars are changed.
    But this can't work because when the service is created(at line 1) error 401 is already thrown.
    What is the equivalent in JAX-WS of the following lines?
    HttpsURLConnection con = (HttpsURLConnection) url.openConnection();
    con.setSSLSocketFactory(factory);
    con.setRequestProperty(varName, val);
    Can someone help with this problem?
    I'm looking for a solution for over a day and I can't find nothing usefull about this.
    Thank you.

    Hi
    Seems that the URL you are referring in Service.create() is a basic auth protected URL(wsdlLocation) ie why you are getting 401 error.
    there are different options to resolve this.
    Authenticator.setDefault(new Authenticator() {
    @Override
    protected PasswordAuthentication getPasswordAuthentication() {
       return new PasswordAuthentication(
          SIUI_USERNAME,
          SIUI_PASSWORD.toCharArray());
    try to add the above code ,before creating the URL.
    2 Download the WSDL from Endpoint and refer that WSDL locally,and dynamically hook the correct endpoint using
    contextws.put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY,"ur Endpoint");
    Haven't tried this...
    custom SSLSocketFactory come in picture only if you have protected your webservice using one way/2 way SSL.
    Thanks,
    Paul

  • How to set Header variables through Jsp

    Hi,
    Can anybody help me with the code.
    I need to send user id in http header variable from jsp to a third party tool, which will read user id from the http header.
    i am tryng to test if ui can set the variable using th efollowing code
    <%response.addHeader("REMOTE_USER" ,"user1"); %>
    and to get that i am using response.getHeader("REMOTE_USER");
    The header variable is not set.
    can you let me know if is possible , can we set user defined header variables??
    Any help will be highly appreciated
    Thanks in advance

    Hi,
    If you'd like to send some additional headers from your jsp it would make sense to add it to your request than the response. Unfortunately, neither a servlet or jsp is allowed to modify the request object. You would need to write a filter to achieve this.
    See the below url for more information on creating filters.
    http://java.sun.com/products/servlet/Filters.html
    cheers,
    vidyut

Maybe you are looking for